Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CalystaT committed Sep 7, 2023
1 parent e7981eb commit 29bf2da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
Binary file modified tests/__pycache__/unit_tests.cpython-311.pyc
Binary file not shown.
21 changes: 1 addition & 20 deletions tests/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,26 +432,7 @@ def test_plot_planar_cube(self):
self.addCleanup(os.remove, "planar_average.csv")
self.addCleanup(os.remove, "planar_average.png")

def test_energy_band_alignment_diagram(self):
"""Tests the energy_band_alignment_diagram function"""

out = md.energy_band_alignment_diagram({
'ZnO': [4.4, 7.7],
'MOF-5': [2.7, 7.3],
'HKUST-1': [5.1, 6.0],
'ZIF-8': [0.9, 6.4],
'COF-1M': [1.3, 4.7],
'CPO-27-Mg': [2.9, 5.9],
'MIL-125': [3.8, 7.6],
'TiO2': [4.8, 7.8]
},ylims=(-10, 0.0), arrowhead=0.15)

pdf = pkg_resources.resource_filename(
__name__, path_join("../tests/testIm", "BandAlignment.pdf")
)
self.assertEqual(out, pdf)
self.addCleanup(os.remove, "BandAlignment.pdf")





Expand Down

0 comments on commit 29bf2da

Please sign in to comment.