Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GstLAL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
GstLAL
Commits
f8c83056
Commit
f8c83056
authored
3 years ago
by
Patrick Godwin
Browse files
Options
Downloads
Patches
Plain Diff
gstlal.dags: add suppress_with_remap option to Option/Argument to be used in DAG layers
parent
a9b38bd8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!41
DAG Workflow Overhaul + OSG DAG support
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gstlal/python/dags/__init__.py
+18
-0
18 additions, 0 deletions
gstlal/python/dags/__init__.py
gstlal/python/dags/layers/__init__.py
+1
-1
1 addition, 1 deletion
gstlal/python/dags/layers/__init__.py
with
19 additions
and
1 deletion
gstlal/python/dags/__init__.py
+
18
−
0
View file @
f8c83056
...
...
@@ -222,6 +222,11 @@ class Argument:
determine whether to define job arguments. This is typically used
when you want to track file I/O used by a job but isn
'
t directly
specified in their commands. Off by default.
suppress_with_remap
Same as suppress but allowing transfer remaps to still occur.
Used when you want to track file output which is not directly
specified in their command but whose file locations changed
compared to their inputs. Off by default.
Examples
________
...
...
@@ -237,6 +242,7 @@ class Argument:
argument
:
Union
[
int
,
float
,
str
,
List
]
track
:
Optional
[
bool
]
=
True
suppress
:
Optional
[
bool
]
=
False
suppress_with_remap
:
Optional
[
bool
]
=
False
def
__post_init__
(
self
):
# check against list of protected condor names/characters,
...
...
@@ -249,6 +255,9 @@ class Argument:
self
.
argument
=
[
self
.
argument
]
self
.
argument
=
[
str
(
arg
)
for
arg
in
self
.
argument
]
if
self
.
suppress_with_remap
:
self
.
suppress
=
True
@property
def
arg_basename
(
self
):
return
[
os
.
path
.
basename
(
arg
)
for
arg
in
self
.
argument
]
...
...
@@ -287,6 +296,11 @@ class Option:
determine whether to define job arguments. This is typically used
when you want to track file I/O used by a job but isn
'
t directly
specified in their commands. Off by default.
suppress_with_remap
Same as suppress but allowing transfer remaps to still occur.
Used when you want to track file output which is not directly
specified in their command but whose file locations changed
compared to their inputs. Off by default.
Examples
________
...
...
@@ -304,6 +318,7 @@ class Option:
argument
:
Optional
[
Union
[
int
,
float
,
str
,
List
]]
=
None
track
:
Optional
[
bool
]
=
True
suppress
:
Optional
[
bool
]
=
False
suppress_with_remap
:
Optional
[
bool
]
=
False
def
__post_init__
(
self
):
# check against list of protected condor names/characters,
...
...
@@ -317,6 +332,9 @@ class Option:
self
.
argument
=
[
self
.
argument
]
self
.
argument
=
[
str
(
arg
)
for
arg
in
self
.
argument
]
if
self
.
suppress_with_remap
:
self
.
suppress
=
True
@property
def
arg_basename
(
self
):
return
[
os
.
path
.
basename
(
arg
)
for
arg
in
self
.
argument
]
...
...
This diff is collapsed.
Click to expand it.
gstlal/python/dags/layers/__init__.py
+
1
−
1
View file @
f8c83056
...
...
@@ -212,7 +212,7 @@ class Layer:
if
not
arg
.
suppress
:
nodevars
.
update
({
f
"
{
arg
.
condor_name
}
"
:
arg
.
vars
(
basename
=
self
.
transfer_files
)})
if
self
.
transfer_files
:
if
not
arg
.
suppress
:
if
not
arg
.
suppress
or
arg
.
suppress_with_remap
:
nodevars
.
update
({
f
"
output_
{
arg
.
condor_name
}
"
:
arg
.
files
(
basename
=
True
)})
nodevars
.
update
({
f
"
output_
{
arg
.
condor_name
}
_remap
"
:
arg
.
remaps
()})
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment