-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update SpatialSeries to have bounds field (#1869)
Co-authored-by: Ryan Ly <[email protected]>
- Loading branch information
Showing
5 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import numpy as np | ||
|
||
from pynwb.behavior import SpatialSeries | ||
from pynwb.testing import AcquisitionH5IOMixin, TestCase | ||
|
||
|
||
class TestSpatialSeriesIO(AcquisitionH5IOMixin, TestCase): | ||
|
||
def setUpContainer(self): | ||
""" Return the test TimeSeries to read/write """ | ||
return SpatialSeries( | ||
name='test_sS', | ||
data=np.ones((3, 2)), | ||
bounds=[(-1,1),(-1,1),(-1,1)], | ||
reference_frame='reference_frame', | ||
timestamps=[1., 2., 3.] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters