ess.powder.types.Source#

pydantic model ess.powder.types.Source[source]#

Neutron source metadata.

Show JSON schema
{
   "title": "Source",
   "description": "Neutron source metadata.",
   "type": "object",
   "properties": {
      "name": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Name"
      },
      "source_type": {
         "$ref": "#/$defs/SourceType"
      },
      "probe": {
         "$ref": "#/$defs/RadiationProbe"
      }
   },
   "$defs": {
      "RadiationProbe": {
         "description": "Type of radiation probe.\n\nNames are based on NeXus definitions.",
         "enum": [
            "neutron",
            "X-ray"
         ],
         "title": "RadiationProbe",
         "type": "string"
      },
      "SourceType": {
         "description": "Type of source.\n\nNames are based on NeXus definitions.",
         "enum": [
            "Spallation Neutron Source",
            "Reactor Neutron Source",
            "Synchrotron X-ray Source"
         ],
         "title": "SourceType",
         "type": "string"
      }
   },
   "required": [
      "source_type",
      "probe"
   ]
}

Fields: