Skip to content

Commit

Permalink
Make csv test more verbose to debug GH Actions failure (fine on Mac…
Browse files Browse the repository at this point in the history
… and Linux (Archer2) ??)
  • Loading branch information
kavanase committed Apr 10, 2024
1 parent fd7cb80 commit 75fdb3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_chemical_potentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ def test_to_csv(self):
reloaded_cpa = chemical_potentials.CompetingPhasesAnalyzer(self.stable_system)
reloaded_cpa.from_csv("competing_phases.csv")
reloaded_cpa_data = reloaded_cpa._get_and_sort_formation_energy_data()
print(pd.DataFrame(stable_cpa_data), pd.DataFrame(reloaded_cpa_data)) # for debugging
print(
pd.DataFrame(stable_cpa_data).to_dict(), pd.DataFrame(reloaded_cpa_data).to_dict()
) # for debugging
assert pd.DataFrame(stable_cpa_data).equals(pd.DataFrame(reloaded_cpa_data))

# check chem limits the same:
Expand Down

0 comments on commit 75fdb3e

Please sign in to comment.