Skip to content

Commit

Permalink
Minor change to assert_xy conversion method.
Browse files Browse the repository at this point in the history
  • Loading branch information
marty-larocque committed Apr 20, 2020
1 parent c055305 commit bfa569f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions matplotcheck/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,13 +933,15 @@ def assert_xydata(
that we can use our own message."""
try:
np.testing.assert_array_max_ulp(
np.array(xy_data["x"]), np.array(xy_expected[xcol])
xy_data["x"].to_numpy(dtype=np.float64),
xy_expected[xcol].to_numpy(dtype=np.float64),
)
except AssertionError:
raise AssertionError(message)
try:
np.testing.assert_array_max_ulp(
np.array(xy_data["y"]), np.array(xy_expected[ycol])
xy_data["y"].to_numpy(dtype=np.float64),
xy_expected[ycol].to_numpy(dtype=np.float64),
)
except AssertionError:
raise AssertionError(message)
Expand Down

0 comments on commit bfa569f

Please sign in to comment.