Skip to content

Commit

Permalink
Fixed a bug that caused crashes related to parent resolution 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ndemaio committed Nov 9, 2023
1 parent 48066ef commit b87714a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raster2dggs/rHPpandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def rhp_to_parent(self, resolution: int = None) -> AnyDataFrame:
resolution : int or None
rHEALPix resolution. If None, then returns the direct parent of each rHEALPix cell.
"""
column = f"rhp_{resolution:02}" if resolution else "rhp_parent"
column = f"rhp_{resolution:02}" if resolution is not None else "rhp_parent"

return self._apply_index_assign(
wrapped_partial(rhp_py.rhp_to_parent, res=resolution), column
Expand Down

0 comments on commit b87714a

Please sign in to comment.