Skip to content

Commit

Permalink
change nonpolarized to is_nonpolarized etc. to stress boolean character
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie-Therese Huebsch committed Dec 17, 2023
1 parent 4ab2b08 commit 6cf7819
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/data/test_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_charge_plot(reference_density, Assert, not_core):


def test_magnetization_plot(reference_density, Assert, not_core):
if reference_density.nonpolarized():
if reference_density.is_nonpolarized():
check_accessing_spin_raises_error(reference_density)
else:
check_plotting_magnetization_density(reference_density, Assert)
Expand All @@ -112,9 +112,9 @@ def check_plotting_magnetization_density(polarized_density, Assert):
assert isinstance(result, viewer3d.Viewer3d)
calls = surface.call_args_list
reference_magnetization = polarized_density.ref.output["magnetization"].T
if polarized_density.collinear():
if polarized_density.is_collinear():
check_collinear_plot(reference_magnetization, calls, Assert)
elif polarized_density.noncollinear():
elif polarized_density.is_noncollinear():
check_noncollinear_plot(reference_magnetization, calls, Assert)


Expand Down

0 comments on commit 6cf7819

Please sign in to comment.