Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
n-claes committed Jan 6, 2023
1 parent 3c1df75 commit 5c95465
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 688 deletions.
13 changes: 4 additions & 9 deletions post_processing/pylbo/automation/generator.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import copy
import f90nml
from pathlib import Path

import f90nml
from pylbo.automation.defaults import namelist_items
from pylbo.utilities.toolbox import transform_to_list
from pylbo.utilities.logger import pylboLogger
from pylbo.exceptions import ParfileGenerationError
from pylbo.utilities.logger import pylboLogger
from pylbo.utilities.toolbox import transform_to_list


def _validate_basename(basename):
Expand Down Expand Up @@ -211,12 +212,6 @@ def generate_parfiles(self):
f"{prefix}{run_dict['savelist'].get('basename_datfile', self.basename)}"
)
run_dict["savelist"].update({"basename_datfile": datfile_name})
# logfile name (no extension .log needed)
logfile_name = run_dict["savelist"].get("basename_logfile", None)
if logfile_name is not None:
logfile_name = f"{prefix}{logfile_name}"
run_dict["savelist"].update({"basename_logfile": logfile_name})

# set paths and write parfile
parfile_path = (self.output_dir / parfile_name).resolve()
self.parfiles.append(str(parfile_path))
Expand Down
Loading

0 comments on commit 5c95465

Please sign in to comment.