File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 3333 supermirror
3434 types
3535 tools
36+ workflow
3637```
3738
3839## Amor
Original file line number Diff line number Diff line change @@ -45,6 +45,23 @@ def _concatenate_lists(*x):
4545def with_filenames (
4646 workflow , runtype : Hashable , runs : Sequence [Filename [RunType ]]
4747) -> sciline .Pipeline :
48+ '''Sets a number of :code:`Filename[runtype]` simultaneously.
49+ The events from all listed files are concatenated in the workflow.
50+
51+ Arguments
52+ ----------
53+ workflow:
54+ the workflow to copy and add the filenames to
55+ runtype:
56+ the kind of runtype to add the files as.
57+ Example: :code:`SampleRun` or :code:`ReferenceRun`.
58+ runs:
59+ the list of filenames to map over
60+
61+ Returns
62+ ---------
63+ A copy of the original workflow mapping over the provided files.
64+ '''
4865 axis_name = f'{ str (runtype ).lower ()} _runs'
4966 df = pd .DataFrame ({Filename [runtype ]: runs }).rename_axis (axis_name )
5067 wf = workflow .copy ()
You can’t perform that action at this time.
0 commit comments