Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pygmt/src/grdhisteq.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def compute_bins(
dtype={
"start": np.float32,
"stop": np.float32,
"bin_id": np.uint32,
"bin_id": np.int64,
},
index_col="bin_id" if output_type == "pandas" else None,
)
2 changes: 1 addition & 1 deletion pygmt/tests/test_grdhisteq.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def fixture_expected_df():
return pd.DataFrame(
data=np.array([[345.5, 519.5, 0], [519.5, 726.5, 1]]),
columns=["start", "stop", "bin_id"],
).astype({"start": np.float32, "stop": np.float32, "bin_id": np.uint32})
).astype({"start": np.float32, "stop": np.float32, "bin_id": np.int64})


def test_equalize_grid_outgrid_file(grid, expected_grid, region):
Expand Down