In IndexSeries, the data attributes are not used, but the specification only states this in the doc.
|
attributes: |
|
- name: conversion |
|
dtype: float32 |
|
doc: This field is unused by IndexSeries. |
|
required: false |
|
- name: resolution |
|
dtype: float32 |
|
doc: This field is unused by IndexSeries. |
|
required: false |
|
- name: offset |
|
dtype: float32 |
|
doc: This field is unused by IndexSeries. |
|
required: false |
|
- name: unit |
|
dtype: text |
|
value: N/A |
|
doc: This field is unused by IndexSeries and has the value N/A. |
An alternative way to ensure the schema more explicitly enforces this is to set default_value: null for these attributes, similar to how value: N/A is already used for the unit attribute:
attributes:
- name: conversion
doc: This field is unused by IndexSeries.
default_value: null
- name: resolution
doc: This field is unused by IndexSeries.
default_value: null
- name: offset
default_value: null
doc: This field is unused by IndexSeries.
- name: unit
value: N/A
doc: This field is unused by IndexSeries and has the value N/A.
Edit: Based on discussion, changed original suggestion of specifying value to specifying default_value instead
In
IndexSeries, the data attributes are not used, but the specification only states this in the doc.nwb-schema/core/nwb.image.yaml
Lines 202 to 218 in 764aa37
An alternative way to ensure the schema more explicitly enforces this is to set
default_value: nullfor these attributes, similar to howvalue: N/Ais already used for theunitattribute:Edit: Based on discussion, changed original suggestion of specifying
valueto specifyingdefault_valueinstead