Skip to content

Commit

Permalink
changes after pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
“Dafydd committed Aug 29, 2024
1 parent 64b1541 commit c8c914f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cstar/base/additional_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def __str__(self):
base_str += "\nNamelist files (paths relative to above location):"
for filename in self.namelists:
base_str += f"\n {filename}"
if filename[-9:]=="_TEMPLATE":
base_str+=f" ({filename[:-9]} will be used by C-Star based on this template)"
if filename[-9:] == "_TEMPLATE":
base_str += f" ({filename[:-9]} will be used by C-Star based on this template)"
return base_str

def __repr__(self):
Expand Down
4 changes: 2 additions & 2 deletions cstar/base/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def __str__(self):
f"\n{NID} InputDataset objects (query using Component.input_datasets"
)

#Discretisation
# Discretisation
disc_str = ""
if hasattr(self, "time_step") and self.time_step is not None:
disc_str += "\ntime_step: " + str(self.time_step) +"s"
disc_str += "\ntime_step: " + str(self.time_step) + "s"
if hasattr(self, "n_procs_x") and self.n_procs_x is not None:
disc_str += (
"\nn_procs_x: "
Expand Down
2 changes: 1 addition & 1 deletion cstar/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from cstar.base import Component
from cstar.base.additional_code import AdditionalCode
from cstar.base.environment import _CSTAR_SYSTEM_MAX_WALLTIME
from cstar.base.input_dataset import DataSource, InputDataset
from cstar.base.input_dataset import InputDataset
from cstar.roms.input_dataset import (
ROMSModelGrid,
ROMSInitialConditions,
Expand Down

0 comments on commit c8c914f

Please sign in to comment.