Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jordidj committed Dec 17, 2024
1 parent 203c157 commit dbb986b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions post_processing/pylbo/gimli/amrvac.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ def prepare_legolas_data(self, loc=None):
loc = validate_output_dir(loc)
self._validate_datfile()
datfile = self.config["datfile"]
name = str(datfile).rsplit('/')[-1]
f = FortranFile(loc + '/' + name[:-4] + ".ldat", "w")
name = str(datfile).rsplit("/")[-1]
f = FortranFile(loc + "/" + name[:-4] + ".ldat", "w")
f.write_record(np.array([self.ds.ef_gridpoints], dtype=np.int32))
f.write_record(
np.array(
Expand Down
2 changes: 1 addition & 1 deletion post_processing/pylbo/gimli/legolas.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def user_module(self, filename="smod_user_defined", loc=None):
>>> legolas.user_module()
"""
loc = validate_output_dir(loc)
name = loc + '/' + filename + ".f08"
name = loc + "/" + filename + ".f08"
create_file(name)
file = open(name, "a")
write_pad(file, "!> Submodule for user-defined equilibria.", 0)
Expand Down

0 comments on commit dbb986b

Please sign in to comment.