Skip to content

Commit

Permalink
couple more copy=None
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 committed Sep 13, 2024
1 parent c29dd4d commit ba1949a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion neo/io/igorproio.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _wave_to_analogsignal(self, content, dirpath):
signal = AnalogSignal(
signal,
units=units,
copy=False,
copy=None,
t_start=t_start,
sampling_period=sampling_period,
name=name,
Expand Down
4 changes: 2 additions & 2 deletions neo/io/proxyobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,11 @@ def load(self, time_slice=None, strict_slicing=True, magnitude_mode="rescaled",
float_wfs = self._rawio.rescale_waveforms_to_float(
raw_wfs, dtype="float32", spike_channel_index=self._spike_channel_index
)
waveforms = pq.Quantity(float_wfs, units=self._wf_units, dtype="float32", copy=False)
waveforms = pq.Quantity(float_wfs, units=self._wf_units, dtype="float32")
elif magnitude_mode == "raw":
# could code also CompundUnit here but it is over killed
# so we used dimentionless
waveforms = pq.Quantity(raw_wfs, units="", dtype=raw_wfs.dtype, copy=False)
waveforms = pq.Quantity(raw_wfs, units="", dtype=raw_wfs.dtype)
else:
waveforms = None

Expand Down

0 comments on commit ba1949a

Please sign in to comment.