instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00004622.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
Test: nexusfiles-scipp|estia|load_raw_file|
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00004468.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00004324.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00004189.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00004045.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00003901.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00003766.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00003631.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00003496.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00003361.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00003226.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00003082.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002938.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002803.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002794.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002618.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002555.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002546.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002532.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'frame_time':
index = slice(None, None, None)
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002483.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'time':
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002474.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'time':
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002392.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
> dg = f[()]
^^^^^
tests/nexusfiles-scipp/fileloading_test.py:20:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:79: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:353: in read_children
return super().read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:96: in read_children
name: self.index_child(child, sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxdata.py:349: in index_child
return child[child_sel]
^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/base.py:383: in __getitem__
dg = self._nexus.read_children(sel)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:81: in read_children
last_loaded, event_index = self._get_event_index(children, index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self =
children = {'time':
def _get_event_index(self, children: sc.DataGroup, index):
> max_index = self.shape[0]
^^^^^^^^^^^^^
E IndexError: tuple index out of range
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/scippnexus/nxevent_data.py:115: IndexError
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002272.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002155.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00002029.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001912.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001804.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001750.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001750.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001678.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001561.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001525.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001525.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001516.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001516.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001507.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001444.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001318.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001201.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001084.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00000976.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00000859.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00000742.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00000688.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00000616.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00000472.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00000328.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning
instrument = 'estia'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00000184.hdf')
def test_load_raw_file(instrument: str, coda_nexus_file_path: Path) -> None:
# Catch the warnings while loading the file to avoid the test from stopping after
# the first warning.
# Note that we need action="default" to make sure that the warnings are not
# promoted as errors.
with warnings.catch_warnings(action="default", record=True) as recorded_warnings:
with sx.File(coda_nexus_file_path, "r", locking=False) as f:
dg = f[()]
# Log the warnings to the test output.
for w in recorded_warnings:
logging.warning("%s: %s", w.category.__name__, w.message)
assert dg["entry"]["instrument"]["name"] == NEXUS_INSTRUMENT_NAME[instrument]
# Re-issue the warnings. We do this instead of asserting that the list of warnings
# is empty to make sure that the filtering of warnings in the pyproject.toml is
# working correctly.
for w in recorded_warnings:
> warnings.warn(
message=w.message,
category=w.category,
source=w.source,
stacklevel=1,
)
E UserWarning: Failed to load /entry/instrument/analyzer_stage/transformations as NXlog: Could not determine signal field or dimensions. Falling back to loading HDF5 group children as scipp.DataGroup.
tests/nexusfiles-scipp/fileloading_test.py:32: UserWarning