diff --git a/nd2reader/raw_metadata.py b/nd2reader/raw_metadata.py index 1152219..f8acd50 100644 --- a/nd2reader/raw_metadata.py +++ b/nd2reader/raw_metadata.py @@ -293,9 +293,9 @@ def _parse_roi(self, raw_roi_dict): roi_dict = self._parse_vect_anim(roi_dict, raw_roi_dict[six.b('m_vectAnimParams_%d' % i)]) # convert to NumPy arrays - roi_dict["timepoints"] = np.array(roi_dict["timepoints"], dtype=np.float) - roi_dict["positions"] = np.array(roi_dict["positions"], dtype=np.float) - roi_dict["sizes"] = np.array(roi_dict["sizes"], dtype=np.float) + roi_dict["timepoints"] = np.array(roi_dict["timepoints"], dtype=np.float64) + roi_dict["positions"] = np.array(roi_dict["positions"], dtype=np.float64) + roi_dict["sizes"] = np.array(roi_dict["sizes"], dtype=np.float64) return roi_dict diff --git a/nd2reader/reader.py b/nd2reader/reader.py index 4e14f42..7bef373 100644 --- a/nd2reader/reader.py +++ b/nd2reader/reader.py @@ -227,7 +227,7 @@ def get_timesteps(self): return self._timesteps self._timesteps = ( - np.array(list(self._parser._raw_metadata.acquisition_times), dtype=np.float) + np.array(list(self._parser._raw_metadata.acquisition_times), dtype=np.float64) * 1000.0 ) diff --git a/requirements.txt b/requirements.txt index b8ab71a..bb96786 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -numpy>=1.14 +numpy>=1.20 six>=1.4 xmltodict>=0.9.2 pims>=0.3.0