We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd42c18 commit 7d0e402Copy full SHA for 7d0e402
src/scippneutron/metadata/_model.py
@@ -26,12 +26,13 @@ class Beamline(BaseModel):
26
... site='PSI',
27
... )
28
29
- If there is no separate facility and site, omit ``site``:
+ If there is no separate facility and site, either omit ``site`` or use the same
30
+ value for both ``facility`` and ``site``. For example:
31
32
>>> beamline = Beamline(
33
... name='ESTIA',
34
... facility='ESS',
- ... site=None, # can be omitted
35
+ ... site='ESS', # can be omitted
36
37
38
If the beamline has been upgraded, provide a revision to indicate
@@ -401,4 +402,4 @@ def _guess_facility_and_site(
401
402
case (facility, site):
403
return facility, site
404
case facility:
- return facility, None
405
+ return facility, facility
0 commit comments