Skip to content

Commit

Permalink
New release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Verweij committed Jan 4, 2018
1 parent 4f8cf57 commit a0b4119
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated from b41ae4 to 9d1833
7 changes: 3 additions & 4 deletions nd2reader/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_timesteps(self):
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

timesteps = np.array([])
Expand All @@ -196,8 +196,7 @@ def get_timesteps(self):
(timesteps, np.arange(current_time, current_time + loop['duration'], loop['sampling_interval'])))
current_time += loop['duration']

if len(timesteps) > 0:
# if experiment did not finish, number of timesteps is wrong. Take correct amount of leading timesteps.
self._timesteps = timesteps[:self.metadata['num_frames']]
# if experiment did not finish, number of timesteps is wrong. Take correct amount of leading timesteps.
self._timesteps = timesteps[:self.metadata['num_frames']]

return self._timesteps
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup

VERSION = '3.0.7'
VERSION = '3.0.8'

if __name__ == '__main__':
setup(
Expand Down
4 changes: 2 additions & 2 deletions sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
# built documents.
#
# The short X.Y version.
version = '3.0.7'
version = '3.0.8'
# 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
# for a list of supported languages.
Expand Down

0 comments on commit a0b4119

Please sign in to comment.