Skip to content

Commit a0b4119

Browse files
author
Ruben Verweij
committed
New release
1 parent 4f8cf57 commit a0b4119

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

docs

Submodule docs updated from b41ae4f to 9d18331

nd2reader/reader.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def get_timesteps(self):
177177
np.ndarray: an array of times in milliseconds.
178178
179179
"""
180-
if self._timesteps is not None:
180+
if self._timesteps is not None and len(timesteps) > 0:
181181
return self._timesteps
182182

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

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

203202
return self._timesteps

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup
22

3-
VERSION = '3.0.7'
3+
VERSION = '3.0.8'
44

55
if __name__ == '__main__':
66
setup(

sphinx/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
# built documents.
4545
#
4646
# The short X.Y version.
47-
version = '3.0.7'
47+
version = '3.0.8'
4848
# The full version, including alpha/beta/rc tags.
49-
release = '3.0.7'
49+
release = '3.0.8'
5050

5151
# The language for content autogenerated by Sphinx. Refer to documentation
5252
# for a list of supported languages.

0 commit comments

Comments
 (0)