instrument = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00010677.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/beam_monitor_2 as NXmonitor: 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
Test: nexusfiles-scipp|loki|load_raw_file|
instrument = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00010537.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00010404.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00010271.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00010131.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00009991.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00009851.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00009711.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00009571.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00009431.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00009284.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00009151.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00009004.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00008857.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00008717.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00008577.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00008430.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00008297.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00008164.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00008024.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00007884.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00007744.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00007611.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00007471.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00007331.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00007198.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00007058.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00006925.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00006785.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00006645.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00006505.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00006365.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00006225.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00006078.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/loki_999999_00005938.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00005787.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00005655.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00005522.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00005382.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00005242.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00005102.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00004962.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00004682.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00004535.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00004395.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00004248.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00004108.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00003961.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/beam_monitor_2 as NXmonitor: 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 = 'loki'
coda_nexus_file_path = PosixPath('/ess/data/coda/2025/999999/raw/loki_999999_00003896.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/beam_monitor_2 as NXmonitor: 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