Use source model name in clone settings save file
This commit is contained in:
parent
4c50a1fb8a
commit
f542b62f3c
1 changed files with 6 additions and 2 deletions
|
|
@ -482,7 +482,9 @@ class State():
|
||||||
# pylint: disable=no-self-use
|
# pylint: disable=no-self-use
|
||||||
"""Load settings from previous run, returns dict."""
|
"""Load settings from previous run, returns dict."""
|
||||||
settings = {}
|
settings = {}
|
||||||
settings_file = pathlib.Path(f'{working_dir}/clone.json')
|
settings_file = pathlib.Path(
|
||||||
|
f'{working_dir}/Clone_{self.source.details["model"]}.json',
|
||||||
|
)
|
||||||
|
|
||||||
# Try loading JSON data
|
# Try loading JSON data
|
||||||
if settings_file.exists():
|
if settings_file.exists():
|
||||||
|
|
@ -516,7 +518,9 @@ class State():
|
||||||
def save_settings(self, settings, working_dir):
|
def save_settings(self, settings, working_dir):
|
||||||
# pylint: disable=no-self-use
|
# pylint: disable=no-self-use
|
||||||
"""Save settings for future runs."""
|
"""Save settings for future runs."""
|
||||||
settings_file = pathlib.Path(f'{working_dir}/clone.json')
|
settings_file = pathlib.Path(
|
||||||
|
f'{working_dir}/Clone_{self.source.details["model"]}.json',
|
||||||
|
)
|
||||||
|
|
||||||
# Try saving JSON data
|
# Try saving JSON data
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue