File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/scippneutron/metadata Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,13 @@ class Beamline(BaseModel):
26
26
... site='PSI',
27
27
... )
28
28
29
- If there is no separate facility and site, omit ``site``:
29
+ If there is no separate facility and site, either omit ``site`` or use the same
30
+ value for both ``facility`` and ``site``. For example:
30
31
31
32
>>> beamline = Beamline(
32
33
... name='ESTIA',
33
34
... facility='ESS',
34
- ... site=None , # can be omitted
35
+ ... site='ESS' , # can be omitted
35
36
... )
36
37
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 ):
402
403
return facility , site
403
404
case facility :
404
- return facility , None
405
+ return facility , facility
You can’t perform that action at this time.
0 commit comments