Skip to content

Commit eec91c6

Browse files
authored
Create and use ImageReferences dataset data type (#520)
* Create and use ImageReferences dataset data type * Add note about offset for IndexSeries * Update release notes
1 parent adcf428 commit eec91c6

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

core/nwb.base.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ datasets:
5757
doc: Description of the image.
5858
required: false
5959

60+
- neurodata_type_def: ImageReferences
61+
neurodata_type_inc: NWBData
62+
dtype:
63+
target_type: Image
64+
reftype: object
65+
dims:
66+
- num_images
67+
shape:
68+
- null
69+
doc: Ordered dataset of references to Image objects.
70+
6071
groups:
6172
- neurodata_type_def: NWBContainer
6273
neurodata_type_inc: Container
@@ -246,13 +257,7 @@ groups:
246257
doc: Images stored in this collection.
247258
quantity: '+'
248259
- name: order_of_images
249-
dims:
250-
- num_images
251-
shape:
252-
- null
253-
dtype:
254-
target_type: Image
255-
reftype: object
260+
neurodata_type_inc: ImageReferences
256261
doc: Ordered dataset of references to Image objects stored in the parent group.
257262
Each Image object in the Images group should be stored once and only once, so
258263
the dataset should have the same length as the number of images.

core/nwb.image.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ groups:
201201
dtype: float32
202202
doc: This field is unused by IndexSeries.
203203
required: false
204+
- name: offset
205+
dtype: float32
206+
doc: This field is unused by IndexSeries.
207+
required: false
204208
- name: unit
205209
dtype: text
206210
value: N/A

docs/format/source/format_release_notes.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Minor changes
1616
- Allowed ``NWBFile/stimulus/templates`` to contain ``Images`` objects. (#459)
1717
- Added new optional "order_of_images" dataset to ``Images`` that contains an ordered list of object references to
1818
``Image`` objects stored in the same ``Images`` object. This dataset must be used if the images are referred to
19-
by index, e.g., from an ``IndexSeries`` object. (#459, #518, #519)
19+
by index, e.g., from an ``IndexSeries`` object. Created new neurodata type ImageReferences which should be used
20+
for this dataset. (#459, #518, #519, #520)
2021
- Overhauled ``IndexSeries`` type (#459):
2122
- Fixed dtype of ``data`` dataset of ``IndexSeries`` (int32 -> uint32).
2223
- Updated ``unit`` attribute of ``data`` to have fixed value "N/A".

0 commit comments

Comments
 (0)