scippneutron.metadata.Source#

class scippneutron.metadata.Source(**data)[source]#

Information about a neutron source.

The ESS source is provided as scippneutron.metadata.ESS_SOURCE.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

field name: Annotated[str | None, BeforeValidator(_unpack_variable)] = None#

Name of the source.

Constraints:
  • func = <function _unpack_variable at 0x7f7144f2fd80>

  • json_schema_input_type = PydanticUndefined

field probe: RadiationProbe [Required]#

Radiation probe of the source.

field source_type: SourceType [Required]#

Type of this source.