Skip to content

Commit

Permalink
Fix abiwan test
Browse files Browse the repository at this point in the history
  • Loading branch information
gmatteo committed Aug 9, 2024
1 parent 4aab7cb commit f06ec9a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions abipy/wannier90/tests/test_abiwan.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,10 @@ def test_abiwan_without_dis(self):

ebands_wan = abiwan.interpolate_ebands(line_density=5)
assert ebands_wan.kpoints.is_path
plotter = abiwan.get_plotter_from_ebands(ebands_wan)

if self.has_matplotlib():
assert abiwan.hwan.plot(show=False)
assert plotter.combiplot(show=False)
assert abiwan.plot_with_ebands(ebands_wan, show=False)
#assert abiwan.plot_centers_spread(show=False)

if self.has_nbformat():
Expand Down Expand Up @@ -85,11 +84,10 @@ def test_abiwan_with_dis(self):
self.assert_almost_equal(ews[:n], in_eigens[spin, ik, :n])

ebands_wan = abiwan.interpolate_ebands(line_density=3)
plotter = abiwan.get_plotter_from_ebands(ebands_wan)

if self.has_matplotlib():
assert abiwan.hwan.plot(show=False)
assert plotter.combiplot(show=False)
assert abiwan.plot_with_ebands(ebands_wan, show=False)

if self.has_nbformat():
assert abiwan.write_notebook(nbpath=self.get_tmpname(text=True))
Expand Down

0 comments on commit f06ec9a

Please sign in to comment.