You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
h3_to_parent at resolution 0 calculates correctly, but returns a column called h3_parent, rather than h3_00 (or perhaps h3_0?) as expected based on the pattern for other resolutions.
I don't think there's anything unexpected about calculating the 0-level parent (I use it for partitioning; a higher resolution is used for my actual information). Rather it's just that this line checks for implicit False, not a strict check for None.
column = self._format_resolution(resolution) if resolution else "h3_parent"
Should be:
column = self._format_resolution(resolution) if resolution != None else "h3_parent"
>>> 'a' if 0 != None else 'b'
'a'
>>> 'a' if 0 else 'b'
'b'
The actual result is correct, it is a level-0 cell.
The text was updated successfully, but these errors were encountered:
alpha-beta-soup
changed the title
h3_to_parent at resolution 0 calculates direct parent
h3_to_parent at resolution 0 labels it as direct parent
Mar 6, 2023
h3_to_parent
at resolution 0 calculates correctly, but returns a column calledh3_parent
, rather thanh3_00
(or perhapsh3_0
?) as expected based on the pattern for other resolutions.I don't think there's anything unexpected about calculating the 0-level parent (I use it for partitioning; a higher resolution is used for my actual information). Rather it's just that this line checks for implicit False, not a strict check for None.
column = self._format_resolution(resolution) if resolution else "h3_parent"
Should be:
column = self._format_resolution(resolution) if resolution != None else "h3_parent"
The actual result is correct, it is a level-0 cell.
The text was updated successfully, but these errors were encountered: