Skip to content

Commit

Permalink
Fix ruff issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Jul 24, 2024
1 parent 5245c35 commit 79fba4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/epyscan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def setup_case(self, sample: dict):
full_sample = epydeck.deep_update(self.template, expanded_sample_dict)
path = rundir_hierarchy(self.root, self._counter)

with open(path / "input.deck", "w") as f:
with (path / "input.deck").open("w") as f:
epydeck.dump(full_sample, f)

self._counter += 1
Expand Down
6 changes: 2 additions & 4 deletions tests/test_epyscan.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import epyscan
import epydeck

import numpy as np
import epyscan


def test_make_run_dirs(tmp_path):
Expand Down Expand Up @@ -107,7 +105,7 @@ def test_campaign(tmp_path):
"other_block": {"var4": True},
}

with open(base_path / "run_4" / "input.deck") as f:
with (base_path / "run_4" / "input.deck").open() as f:
actual_case_deck = epydeck.load(f)

assert actual_case_deck == expected_case_deck

0 comments on commit 79fba4e

Please sign in to comment.