Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lscsoft
PESummary
Commits
d34abfc2
Commit
d34abfc2
authored
Nov 21, 2022
by
Charlie Hoy
Browse files
change name of additional plot if the same plot already exists
parent
0734e3b1
Pipeline
#477703
failed with stages
in 129 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pesummary/core/cli/inputs.py
View file @
d34abfc2
...
...
@@ -1163,7 +1163,10 @@ class _Input(object):
try
:
shutil
.
copyfile
(
_plot
,
_filename
)
except
shutil
.
SameFileError
:
pass
_filename
=
os
.
path
.
join
(
self
.
webdir
,
"plots"
,
key
+
"_"
+
Path
(
_plot
).
name
)
shutil
.
copyfile
(
_plot
,
_filename
)
self
.
_existing_plot
[
key
]
=
_filename
for
key
in
keys_to_remove
:
del
self
.
_existing_plot
[
key
]
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment