Browse Source

Also get sampling interval when dAvgPeriodDiff is not set

master
Ruben Verweij 8 years ago
parent
commit
d5752f1633
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      nd2reader/raw_metadata.py

+ 4
- 1
nd2reader/raw_metadata.py View File

@ -350,7 +350,10 @@ class RawMetadata(object):
is_stimulation = get_from_dict_if_exists('uiLoopType', loop) == 6 is_stimulation = get_from_dict_if_exists('uiLoopType', loop) == 6
# sampling interval in ms # sampling interval in ms
interval = get_from_dict_if_exists('dAvgPeriodDiff', loop)
interval = get_from_dict_if_exists('dPeriod', loop)
if interval is None or interval <= 0:
interval = get_from_dict_if_exists('dAvgPeriodDiff', loop)
parsed_loop = { parsed_loop = {
'start': time_offset, 'start': time_offset,


Loading…
Cancel
Save