Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Ian Bowman
Hippocampus Gene Expression Atlas -- CIC Data Integrated Software
Commits
f4fe2b15
Commit
f4fe2b15
authored
7 years ago
by
Ian Bowman
Browse files
Options
Download
Email Patches
Plain Diff
Better output of arguments
parent
f8e39b69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/reprod_friend.py
src/reprod_friend.py
+6
-3
No files found.
src/reprod_friend.py
View file @
f4fe2b15
...
...
@@ -46,13 +46,16 @@ def main():
if
print_args
:
print
(
"
\n
"
)
for
arg
in
p
:
if
type
(
p
[
arg
])
==
bool
and
p
[
arg
]:
if
p
[
arg
]
is
None
:
print
(
""
,
end
=
' '
)
elif
type
(
p
[
arg
])
==
bool
and
p
[
arg
]:
#note this only works for action='store_true'
print
(
"--{}"
.
format
(
arg
),
end
=
' '
)
elif
type
(
p
[
arg
])
==
bool
and
not
p
[
arg
]:
#note this only works for action='store_true'
print
(
""
.
format
(
arg
)
,
end
=
' '
)
print
(
""
,
end
=
' '
)
elif
type
(
p
[
arg
])
==
str
and
' '
in
p
[
arg
]:
print
(
'--{}="{}"'
.
format
(
arg
,
p
[
arg
]),
end
=
' '
)
...
...
@@ -72,7 +75,7 @@ def main():
shutil
.
copy2
(
pickle_path
,
copy_path
)
else
:
print
(
"No pickle path {} found for
corresponding output
{}"
\
print
(
"
WARNING:
No pickle path {} found for {}"
\
.
format
(
pickle_path
,
corresponding_output
))
if
__name__
==
'__main__'
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment