DMSC Integration Testing

Last updated: May 27, 2026 07:24:18

Test: nexusfiles-scipp|dream|dream_read_choppers|

View job log here


workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_dream_999999_00001524.hdf')
check_chopper =

def test_dream_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) == 5
for name, chopper in choppers.items():
> check_chopper(chopper, name=name)

tests/nexusfiles-scipp/dream/dream_load_nexus_test.py:139:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

chopper = DataGroup(sizes={'time': 0, 'dim_0': 2}, keys=[
type: Chopper type single,
position: Variable({}),
transfo...op_dead_center: DataArray({'time': 0}),
transformations: DataGroup(2, {}),
nexus_component_name: T0_chopper,
])
name = 'T0_chopper'

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 'T0_chopper' 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/T0_chopper', value='/entry/instrument/T0_chopper/transformations/translation', transformations=DataGroup(sizes={}, keys=[\n /entry/instrument/T0_chopper/transformations/translation: Transform({}),\n /entry/instrument/T0_chopper/transformations/translation1: Transform({}),\n])),\n experiment_delay: DataArray({'time': 0}),\n pulse_delay: 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 top_dead_center: DataArray({'time': 0}),\n transformations: DataGroup(2, {}),\n nexus_component_name: T0_chopper,\n])

.tox/nexusfiles-scipp-dream/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:56: AssertionError