Browse Source

Fix small bug when uiCount cannot be found

feature/load_slices
Ruben Verweij 8 years ago
parent
commit
09bd870734
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nd2reader/raw_metadata.py

+ 1
- 1
nd2reader/raw_metadata.py View File

@ -384,7 +384,7 @@ class RawMetadata(object):
if interval is None or interval <= 0:
# In some cases, both keys are not saved. Then try to calculate it.
number_of_loops = get_from_dict_if_exists('uiCount', loop)
number_of_loops = number_of_loops if number_of_loops > 0 else 1
number_of_loops = number_of_loops if number_of_loops is not None and number_of_loops > 0 else 1
interval = duration / number_of_loops
return interval


Loading…
Cancel
Save