Skip to content
Snippets Groups Projects
Commit 25e4bafd authored by Ruben Verweij's avatar Ruben Verweij
Browse files

New release

parent e9ffd4ba
No related branches found
No related tags found
No related merge requests found
Subproject commit b41ae4f4cfb9e5cf49f4e9c806f0e0f94cbf317c Subproject commit 9d1833182940461467048d753fc29be19bf4c9bd
...@@ -177,7 +177,7 @@ class ND2Reader(FramesSequenceND): ...@@ -177,7 +177,7 @@ class ND2Reader(FramesSequenceND):
np.ndarray: an array of times in milliseconds. np.ndarray: an array of times in milliseconds.
""" """
if self._timesteps is not None: if self._timesteps is not None and len(timesteps) > 0:
return self._timesteps return self._timesteps
timesteps = np.array([]) timesteps = np.array([])
...@@ -196,7 +196,6 @@ class ND2Reader(FramesSequenceND): ...@@ -196,7 +196,6 @@ class ND2Reader(FramesSequenceND):
(timesteps, np.arange(current_time, current_time + loop['duration'], loop['sampling_interval']))) (timesteps, np.arange(current_time, current_time + loop['duration'], loop['sampling_interval'])))
current_time += loop['duration'] current_time += loop['duration']
if len(timesteps) > 0:
# if experiment did not finish, number of timesteps is wrong. Take correct amount of leading timesteps. # if experiment did not finish, number of timesteps is wrong. Take correct amount of leading timesteps.
self._timesteps = timesteps[:self.metadata['num_frames']] self._timesteps = timesteps[:self.metadata['num_frames']]
......
from setuptools import setup from setuptools import setup
VERSION = '3.0.7' VERSION = '3.0.8'
if __name__ == '__main__': if __name__ == '__main__':
setup( setup(
......
...@@ -44,9 +44,9 @@ author = 'Ruben Verweij' ...@@ -44,9 +44,9 @@ author = 'Ruben Verweij'
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = '3.0.7' version = '3.0.8'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '3.0.7' release = '3.0.8'
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment