None
Test: nexusfiles-scipp|bifrost|bifrost_read_choppers|
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_bifrost_999999_00004475.hdf')
check_chopper =
def test_bifrost_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) == 6
E AssertionError: assert 12 == 6
E + where 12 = len(DataGroup(sizes={'time': 0, 'dim_0': 2}, keys=[\n 005_PulseShapingChopper: DataGroup(19, {'time': 0, 'dim_0': 2}),\n 006_PulseShapingChopper2: DataGroup(19, {'time': 0, 'dim_0': 2}),\n 019_FOC1: DataGroup(19, {'time': 0, 'dim_0': 2}),\n 048_FOC2: DataGroup(19, {'time': 0, 'dim_0': 2}),\n 095_BWC1: DataGroup(19, {'time': 0, 'dim_0': 2}),\n 096_BWC2: DataGroup(19, {'time': 0, 'dim_0': 2}),\n bandwidth_chopper_1: DataGroup(19, {'dim_0': 2}),\n bandwidth_chopper_2: DataGroup(19, {'dim_0': 2}),\n frame_overlap_chopper_1: DataGroup(19, {'dim_0': 2}),\n frame_overlap_chopper_2: DataGroup(19, {'dim_0': 2}),\n pulse_shaping_chopper_1: DataGroup(19, {'dim_0': 2}),\n pulse_shaping_chopper_2: DataGroup(19, {'dim_0': 2}),\n]))
tests/nexusfiles-scipp/bifrost/bifrost_load_nexus_test.py:107: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_bifrost_999999_00004331.hdf')
check_chopper =
def test_bifrost_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) == 6
E AssertionError: assert 12 == 6
E + where 12 = len(DataGroup(sizes={'time': None, 'dim_0': 2}, keys=[\n 005_PulseShapingChopper: DataGroup(19, {'time': None, 'dim_0': 2}),\n 006_PulseShapingChopper2: DataGroup(19, {'time': None, 'dim_0': 2}),\n 019_FOC1: DataGroup(19, {'time': None, 'dim_0': 2}),\n 048_FOC2: DataGroup(19, {'time': None, 'dim_0': 2}),\n 095_BWC1: DataGroup(19, {'time': None, 'dim_0': 2}),\n 096_BWC2: DataGroup(19, {'time': None, 'dim_0': 2}),\n bandwidth_chopper_1: DataGroup(19, {'dim_0': 2}),\n bandwidth_chopper_2: DataGroup(19, {'dim_0': 2}),\n frame_overlap_chopper_1: DataGroup(19, {'dim_0': 2}),\n frame_overlap_chopper_2: DataGroup(19, {'dim_0': 2}),\n pulse_shaping_chopper_1: DataGroup(19, {'dim_0': 2}),\n pulse_shaping_chopper_2: DataGroup(19, {'dim_0': 2}),\n]))
tests/nexusfiles-scipp/bifrost/bifrost_load_nexus_test.py:107: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_bifrost_999999_00004187.hdf')
check_chopper =
def test_bifrost_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) == 6
E AssertionError: assert 12 == 6
E + where 12 = len(DataGroup(sizes={'time': None, 'dim_0': 2}, keys=[\n 005_PulseShapingChopper: DataGroup(19, {'time': None, 'dim_0': 2}),\n 006_PulseShapingChopper2: DataGroup(19, {'time': None, 'dim_0': 2}),\n 019_FOC1: DataGroup(19, {'time': None, 'dim_0': 2}),\n 048_FOC2: DataGroup(19, {'time': None, 'dim_0': 2}),\n 095_BWC1: DataGroup(19, {'time': None, 'dim_0': 2}),\n 096_BWC2: DataGroup(19, {'time': None, 'dim_0': 2}),\n bandwidth_chopper_1: DataGroup(19, {'dim_0': 2}),\n bandwidth_chopper_2: DataGroup(19, {'dim_0': 2}),\n frame_overlap_chopper_1: DataGroup(19, {'dim_0': 2}),\n frame_overlap_chopper_2: DataGroup(19, {'dim_0': 2}),\n pulse_shaping_chopper_1: DataGroup(19, {'dim_0': 2}),\n pulse_shaping_chopper_2: DataGroup(19, {'dim_0': 2}),\n]))
tests/nexusfiles-scipp/bifrost/bifrost_load_nexus_test.py:107: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_bifrost_999999_00004043.hdf')
check_chopper =
def test_bifrost_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) == 6
E AssertionError: assert 12 == 6
E + where 12 = len(DataGroup(sizes={'time': None, 'dim_0': 2}, keys=[\n 005_PulseShapingChopper: DataGroup(19, {'time': None, 'dim_0': 2}),\n 006_PulseShapingChopper2: DataGroup(19, {'time': None, 'dim_0': 2}),\n 019_FOC1: DataGroup(19, {'time': None, 'dim_0': 2}),\n 048_FOC2: DataGroup(19, {'time': None, 'dim_0': 2}),\n 095_BWC1: DataGroup(19, {'time': None, 'dim_0': 2}),\n 096_BWC2: DataGroup(19, {'time': None, 'dim_0': 2}),\n bandwidth_chopper_1: DataGroup(19, {'dim_0': 2}),\n bandwidth_chopper_2: DataGroup(19, {'dim_0': 2}),\n frame_overlap_chopper_1: DataGroup(19, {'dim_0': 2}),\n frame_overlap_chopper_2: DataGroup(19, {'dim_0': 2}),\n pulse_shaping_chopper_1: DataGroup(19, {'dim_0': 2}),\n pulse_shaping_chopper_2: DataGroup(19, {'dim_0': 2}),\n]))
tests/nexusfiles-scipp/bifrost/bifrost_load_nexus_test.py:107: AssertionError
workflow =
coda_nexus_file_path = PosixPath('/ess/data/coda/999999/raw/coda_bifrost_999999_00002553.hdf')
check_chopper =
def test_bifrost_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) == 6
for name, chopper in choppers.items():
> check_chopper(chopper, name=name)
tests/nexusfiles-scipp/bifrost/bifrost_load_nexus_test.py:109:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
chopper = DataGroup(sizes={'time': 640, 'dim_0': 2}, keys=[
type: Chopper type single,
position: Variable({}),
trans...t: Variable({}),
slits: 1,
transformations: DataGroup(3, {}),
nexus_component_name: bandwidth_chopper_1,
])
name = 'bandwidth_chopper_1'
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'"
)
E AssertionError: Chopper 'bandwidth_chopper_1' missing 'rotation_speed_setpoint'
E assert 'rotation_speed_setpoint' in DataGroup(sizes={'time': 640, 'dim_0': 2}, keys=[\n type: Chopper type single,\n position: Variable({}),\n transform: Variable({}),\n depends_on: TransformationChain(parent='/entry/instrument/bandwidth_chopper_1', value='transformations/bandwidth_chopper_1_t0_r', transformations=DataGroup(sizes={}, keys=[\n /entry/instrument/bandwidth_chopper_1/transformations/bandwidth_chopper_1_t0_r: Transform({}),\n /entry/instrument/bandwidth_chopper_1/transformations/bandwidth_chopper_1_t0_z: Transform({}),\n /entry/instrument/bandwidth_chopper_1/transformations/bandwidth_chopper_1_t0_x: Transform({}),\n])),\n radius: Variable({}),\n rotation_speed: DataArray({'time': 640}),\n slit_angle: Variable({}),\n slit_edges: Variable({'dim_0': 2}),\n slit_height: Variable({}),\n slits: 1,\n transformations: DataGroup(3, {}),\n nexus_component_name: bandwidth_chopper_1,\n])
.tox/nexusfiles-scipp-bifrost/lib/python3.12/site-packages/dmsc_nightly/testing/nexusfiles/validation_fixtures.py:51: AssertionError