Skip to content

Commit

Permalink
Fix beersheba test
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaponte committed Feb 2, 2024
1 parent 3f2f9b3 commit 5039088
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invisible_cities/cities/beersheba_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def test_create_deconvolution_df(ICDATADIR):
new_dst = pd.concat([create_deconvolution_df(t, t.E.values, (t.X.values, t.Y.values, t.Z.values),
CutType.abs, ecut, 3) for _, t in true_dst.groupby('event')])
true_dst = true_dst.loc[true_dst.E > ecut, :].reset_index(drop=True)

# compare only existing columns
true_dst = true_dst.loc[:, new_dst.columns.values.tolist()]
assert_dataframes_close(new_dst .reset_index(drop=True), true_dst.reset_index(drop=True))


Expand Down

0 comments on commit 5039088

Please sign in to comment.