Skip to content

Commit

Permalink
Merge pull request #112 from lpsinger/missing-return-statements
Browse files Browse the repository at this point in the history
Add missing return statements.

It seems that those errors are due to someone used to Rust (no return needed and compile time catch errors) 😅.
Thank you @lpsinger for th PR.
  • Loading branch information
fxpineau authored Nov 7, 2023
2 parents a4f26f6 + 7149732 commit 1ed605a
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 1ed605a

Please sign in to comment.