Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Added:
- `Add Channel Access Report functions <../../pull/115>`_
- Add ``WaveformIn`` to default exports from ``softioc.builder``

Fixed:

- `Fix DeprecationWarning from numpy when using "+" <../../pull/123>`_

4.2.0_ - 2022-11-08
-------------------

Expand Down
2 changes: 1 addition & 1 deletion softioc/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def _value_to_epics(self, value):
# common class of bug, at the cost of duplicated code and data, here we
# ensure a copy is taken of the value.
assert len(value) <= self._nelm, 'Value too long for waveform'
return +value
return numpy.copy(value)

def _epics_to_value(self, value):
return value
Expand Down
2 changes: 1 addition & 1 deletion softioc/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ def __set_time(self, address, new_time):



__all__ = ['RecordFactory', 'DbfCodeToNumpy', 'ca_timestamp']
__all__ = ['RecordFactory', 'ca_timestamp']