Skip to content

Commit

Permalink
Add missing return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Oct 26, 2023
1 parent 96cf964 commit 7149732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mocpy/abstract_moc.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def uniq_gen(self):
of the index's MSB. At a given depth, the sentinel bit is always put o the same bit.
* Because the uniq HEALPix encoding is not adapted for non-HEALPIx indices.
"""
mocpy.to_uniq_gen(self._store_index)
return mocpy.to_uniq_gen(self._store_index)

@property
def uniq_zorder(self):
Expand All @@ -251,7 +251,7 @@ def uniq_zorder(self):
AND because the natural ordering of such indices follow the same order as the zorder indices
(which is very useful for streaming processing, e.g. when dealing with multi-order maps)
"""
mocpy.to_uniq_zorder(self._store_index)
return mocpy.to_uniq_zorder(self._store_index)

def flatten(self):
"""Return the list of indices of all cells in the MOC at the MOC depth."""
Expand Down

0 comments on commit 7149732

Please sign in to comment.