File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,16 @@ class Beamline(BaseModel):
21
21
The location of the beamline is split into ``facility`` and ``site``, where
22
22
a 'facility' is located at a 'site'. For example:
23
23
24
- >>> Beamline(
24
+ >>> from scippneutron.meta import Beamline
25
+ >>> beamline = Beamline(
25
26
... name='Amor',
26
27
... facility='SINQ',
27
28
... site='PSI',
28
29
... )
29
30
30
31
If there is no separate facility and site, omit ``site``:
31
32
32
- >>> Beamline(
33
+ >>> beamline = Beamline(
33
34
... name='ESTIA',
34
35
... facility='ESS',
35
36
... site=None, # can be omitted
@@ -196,7 +197,8 @@ class Software(BaseModel):
196
197
The piece of software should be specified as precisely as possible.
197
198
For example, a release version of ScippNeutron could be specified as follows:
198
199
199
- >>> Software(
200
+ >>> from scippneutron.meta import Software
201
+ >>> software = Software(
200
202
... name='ScippNeutron',
201
203
... version='24.11.0',
202
204
... url='https://github.com/scipp/scippneutron/releases/tag/24.11.0',
@@ -208,7 +210,7 @@ class Software(BaseModel):
208
210
But the software should be specified as precisely as possible.
209
211
For example:
210
212
211
- >>> Software(
213
+ >>> software = Software(
212
214
... name='ScippNeutron',
213
215
... version='24.11.1.dev8+g10d09ab0',
214
216
... url='https://github.com/scipp/scippneutron',
You can’t perform that action at this time.
0 commit comments