None
Test: nexusfiles-scipp|estia|estia_read_choppers|
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_estia_999999_00001525.hdf')
check_chopper =
def test_estia_read_choppers(
workflow: sciline.Pipeline, coda_nexus_file_path: Path, check_chopper: Callable
) -> None:
workflow[Filename[SampleRun]] = coda_nexus_file_path
choppers = workflow.compute(RawChoppers[SampleRun])
assert len(choppers) == 1
for name, chopper in choppers.items():
> check_chopper(chopper, name=name)
tests/nexusfiles-scipp/estia/estia_load_nexus_test.py:109:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
chopper = DataGroup(sizes={'time': 0, 'dim_0': 2}, keys=[
type: Chopper type single,
position: Variable({}),
transfo...,
top_dead_center: DataArray({'time': 0}),
transformations: DataGroup(1, {}),
nexus_component_name: bwc,
])
name = 'bwc'
def _check_chopper(chopper: sc.DataGroup, name: str = "UNKNOWN") -> None:
assert "position" in chopper, f"Chopper '{name}' missing 'position'"
assert "rotation_speed" in chopper, f"Chopper '{name}' missing 'rotation_speed'"
assert "rotation_speed_setpoint" in chopper, (
f"Chopper '{name}' missing 'rotation_speed_setpoint'"
)
assert "slit_edges" in chopper, f"Chopper '{name}' missing 'slit_edges'"
assert "delay" in chopper, f"Chopper '{name}' missing 'delay'"
> assert "beam_position" in chopper, f"Chopper '{name}' missing 'beam_position'"
E AssertionError: Chopper 'bwc' missing 'beam_position'
E assert 'beam_position' in DataGroup(sizes={'time': 0, 'dim_0': 2}, keys=[\n type: Chopper type single,\n position: Variable({}),\n transform: Variable({}),\n delay: DataArray({'time': 0}),\n depends_on: TransformationChain(parent='/entry/instrument/bwc', value='/entry/instrument/bwc/transformations/translation', transformations=DataGroup(sizes={}, keys=[\n /entry/instrument/bwc/transformations/translation: Transform({}),\n])),\n park_angle: DataArray({'time': 0}),\n park_control: DataArray({'time': 0}),\n phase: DataArray({'time': 0}),\n radius: Variable({}),\n rotation_speed: DataArray({'time': 0}),\n rotation_speed_setpoint: DataArray({'time': 0}),\n slit_edges: Variable({'dim_0': 2}),\n slit_height: Variable({}),\n slits: 1,\n status: DataArray({'time': 0}),\n top_dead_center: DataArray({'time': 0}),\n transformations: DataGroup(1, {}),\n nexus_component_name: bwc,\n])
.tox/nexusfiles-scipp-estia/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:56: AssertionError