From 7149732bda2fd0839c0321bb11d73396ddcb0e28 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Thu, 26 Oct 2023 16:34:15 -0400 Subject: [PATCH] Add missing return statements --- python/mocpy/abstract_moc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mocpy/abstract_moc.py b/python/mocpy/abstract_moc.py index 5fd93187..d9641254 100644 --- a/python/mocpy/abstract_moc.py +++ b/python/mocpy/abstract_moc.py @@ -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): @@ -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."""