Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
weiglszonja committed Nov 11, 2020
1 parent 10820d8 commit 26ea6cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pynwb/behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ class SpatialSeries(TimeSeries):
'dimension represents different features, e.g., x, y position')},
{'name': 'reference_frame', 'type': str, # required
'doc': 'description defining what the zero-position is'},
{'name': 'unit', 'type': str, 'doc': 'The base unit of measurement (should be SI unit)',
'default': 'meters'},
*get_docval(TimeSeries.__init__, 'conversion', 'resolution', 'timestamps', 'starting_time', 'rate',
'comments', 'description', 'control', 'control_description'))
def __init__(self, **kwargs):
"""
Create a SpatialSeries TimeSeries dataset
"""
name, data, reference_frame = popargs('name', 'data', 'reference_frame', kwargs)
super(SpatialSeries, self).__init__(name, data, 'meters', **kwargs)
name, data, reference_frame, unit = popargs('name', 'data', 'reference_frame', 'unit', kwargs)
super(SpatialSeries, self).__init__(name, data, unit, **kwargs)
self.reference_frame = reference_frame


Expand Down

0 comments on commit 26ea6cb

Please sign in to comment.