nexus_json_template = PosixPath('dream-dynamic.json')
def test_nexus_json_template(nexus_json_template: pathlib.Path) -> None:
downloaded = json.loads(nexus_json_template.read_text())
assert "children" in downloaded # Check if the file was downloaded correctly
# collect_streaming_modules will validate the structure
# that is required by `beamlime`.
# It is currently removed from `beamlime` package.
# We should update the method that is used by `beamlime` once it is added back
# or updated in `beamlime`.
> collect_streaming_modules(downloaded)
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:201:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:180: in collect_streaming_modules
_validate_f144_module_spec(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
module_spec = StreamModuleValue(path=('entry', 'instrument', 'polarizer', 'rate'), parent={'name': 'rate', 'type': 'group', 'attribu...lues': 'Field rate does not exist in the NeXus standard spec', 'dtype': 'string'}}]}, dtype='double', value_units=None)
def _validate_f144_module_spec(
module_spec: StreamModuleValue,
) -> None:
"""Validate the f144 module."""
if len(module_spec.parent["children"]) != 1:
> raise InvalidNexusStructureError(
"Group containing f144 module should have exactly one child"
)
E tests.nexusjsontemplate-beamlime.nexus_json_template_test.InvalidNexusStructureError: Group containing f144 module should have exactly one child
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:117: InvalidNexusStructureError
Test: nexusjsontemplate-beamlime|dream|nexus_json_template|
nexus_json_template = PosixPath('dream-dynamic.json')
def test_nexus_json_template(nexus_json_template: pathlib.Path) -> None:
downloaded = json.loads(nexus_json_template.read_text())
assert "children" in downloaded # Check if the file was downloaded correctly
# collect_streaming_modules will validate the structure
# that is required by `beamlime`.
# It is currently removed from `beamlime` package.
# We should update the method that is used by `beamlime` once it is added back
# or updated in `beamlime`.
> collect_streaming_modules(downloaded)
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:201:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:180: in collect_streaming_modules
_validate_f144_module_spec(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
module_spec = StreamModuleValue(path=('entry', 'instrument', 'polarizer', 'rate'), parent={'name': 'rate', 'type': 'group', 'attribu...lues': 'Field rate does not exist in the NeXus standard spec', 'dtype': 'string'}}]}, dtype='double', value_units=None)
def _validate_f144_module_spec(
module_spec: StreamModuleValue,
) -> None:
"""Validate the f144 module."""
if len(module_spec.parent["children"]) != 1:
> raise InvalidNexusStructureError(
"Group containing f144 module should have exactly one child"
)
E tests.nexusjsontemplate-beamlime.nexus_json_template_test.InvalidNexusStructureError: Group containing f144 module should have exactly one child
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:117: InvalidNexusStructureError
nexus_json_template = PosixPath('dream-dynamic.json')
def test_nexus_json_template(nexus_json_template: pathlib.Path) -> None:
downloaded = json.loads(nexus_json_template.read_text())
assert "children" in downloaded # Check if the file was downloaded correctly
# collect_streaming_modules will validate the structure
# that is required by `beamlime`.
# It is currently removed from `beamlime` package.
# We should update the method that is used by `beamlime` once it is added back
# or updated in `beamlime`.
> collect_streaming_modules(downloaded)
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:201:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:180: in collect_streaming_modules
_validate_f144_module_spec(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
module_spec = StreamModuleValue(path=('entry', 'instrument', 'polarizer', 'rate'), parent={'name': 'rate', 'type': 'group', 'attribu...lues': 'Field rate does not exist in the NeXus standard spec', 'dtype': 'string'}}]}, dtype='double', value_units=None)
def _validate_f144_module_spec(
module_spec: StreamModuleValue,
) -> None:
"""Validate the f144 module."""
if len(module_spec.parent["children"]) != 1:
> raise InvalidNexusStructureError(
"Group containing f144 module should have exactly one child"
)
E tests.nexusjsontemplate-beamlime.nexus_json_template_test.InvalidNexusStructureError: Group containing f144 module should have exactly one child
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:117: InvalidNexusStructureError
nexus_json_template = PosixPath('dream-dynamic.json')
def test_nexus_json_template(nexus_json_template: pathlib.Path) -> None:
downloaded = json.loads(nexus_json_template.read_text())
assert "children" in downloaded # Check if the file was downloaded correctly
# collect_streaming_modules will validate the structure
# that is required by `beamlime`.
# It is currently removed from `beamlime` package.
# We should update the method that is used by `beamlime` once it is added back
# or updated in `beamlime`.
> collect_streaming_modules(downloaded)
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:201:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:180: in collect_streaming_modules
_validate_f144_module_spec(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
module_spec = StreamModuleValue(path=('entry', 'instrument', 'polarizer', 'rate'), parent={'name': 'rate', 'type': 'group', 'attribu...lues': 'Field rate does not exist in the NeXus standard spec', 'dtype': 'string'}}]}, dtype='double', value_units=None)
def _validate_f144_module_spec(
module_spec: StreamModuleValue,
) -> None:
"""Validate the f144 module."""
if len(module_spec.parent["children"]) != 1:
> raise InvalidNexusStructureError(
"Group containing f144 module should have exactly one child"
)
E tests.nexusjsontemplate-beamlime.nexus_json_template_test.InvalidNexusStructureError: Group containing f144 module should have exactly one child
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:117: InvalidNexusStructureError
nexus_json_template = PosixPath('dream-dynamic.json')
def test_nexus_json_template(nexus_json_template: pathlib.Path) -> None:
downloaded = json.loads(nexus_json_template.read_text())
assert "children" in downloaded # Check if the file was downloaded correctly
# collect_streaming_modules will validate the structure
# that is required by `beamlime`.
# It is currently removed from `beamlime` package.
# We should update the method that is used by `beamlime` once it is added back
# or updated in `beamlime`.
> collect_streaming_modules(downloaded)
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:201:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:180: in collect_streaming_modules
_validate_f144_module_spec(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
module_spec = StreamModuleValue(path=('entry', 'instrument', 'polarizer', 'rate'), parent={'name': 'rate', 'type': 'group', 'attribu...lues': 'Field rate does not exist in the NeXus standard spec', 'dtype': 'string'}}]}, dtype='double', value_units=None)
def _validate_f144_module_spec(
module_spec: StreamModuleValue,
) -> None:
"""Validate the f144 module."""
if len(module_spec.parent["children"]) != 1:
> raise InvalidNexusStructureError(
"Group containing f144 module should have exactly one child"
)
E tests.nexusjsontemplate-beamlime.nexus_json_template_test.InvalidNexusStructureError: Group containing f144 module should have exactly one child
tests/nexusjsontemplate-beamlime/nexus_json_template_test.py:117: InvalidNexusStructureError