scippneutron.metadata.Source#

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

Information about a neutron source.

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

Attributes

model_computed_fields

model_config

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

model_extra

Get extra fields set during validation.

model_fields

model_fields_set

Returns the set of fields that have been explicitly set on this model instance.

name

Name of the source.

source_type

Type of this source.

probe

Radiation probe of the source.

model_config: ClassVar[ConfigDict] = {}#

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

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

Name of the source.

probe: RadiationProbe#

Radiation probe of the source.

source_type: SourceType#

Type of this source.