Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
phobson committed Oct 25, 2024
1 parent 42de813 commit f666048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygridtools/tests/test_iotools.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ def test_read_grid():
known_df = pandas.DataFrame(
data={'easting': [1., 2., 3.] * 4, 'northing': sorted([4., 5., 6., 7.] * 3)},
index=pandas.MultiIndex.from_product([[2, 3, 4, 5], [2, 3, 4]], names=['jj', 'ii'])
).assign(elev=0.0).assign(river='test').reset_index().set_index(['ii', 'jj']).sort_index().assign(
).assign(elev=0.0).assign(river='test').reset_index().assign(
ii=lambda df: df["ii"].astype("int64"),
jj=lambda df: df["jj"].astype("int64"),
)
).set_index(['ii', 'jj']).sort_index()

pdtest.assert_frame_equal(result_df, known_df)

Expand Down

0 comments on commit f666048

Please sign in to comment.