Skip to content

Commit

Permalink
Ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Oct 18, 2023
1 parent 3594bc8 commit 0d040c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/test_parmparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ def test_parmparse():
dt = pp_param.get_real("dt")
dopml = pp_param.get_bool("do_pml")

assert dopml == True
assert dopml
assert dt == 1.0e-5
assert ncell == 100
12 changes: 6 additions & 6 deletions tests/test_periodicity.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

def test_periodicity():
obj = amr.Periodicity()
assert obj.is_any_periodic == False
assert obj.is_all_periodic == False
assert obj.is_periodic(0) == False
assert obj[0] == False
assert not obj.is_any_periodic
assert not obj.is_all_periodic
assert not obj.is_periodic(0)
assert not obj[0]
# with pytest.raises(IndexError):
# obj[3]

Expand All @@ -23,9 +23,9 @@ def test_periodicity_3d():
iv = amr.IntVect(1, 0, 1)
obj = amr.Periodicity(iv)
assert obj.is_any_periodic
assert obj.is_all_periodic == False
assert not obj.is_all_periodic
assert obj.is_periodic(0)
assert obj.is_periodic(1) == False
assert not obj.is_periodic(1)
assert obj.is_periodic(2)
assert obj.is_periodic[2]

Expand Down

0 comments on commit 0d040c4

Please sign in to comment.