Skip to content

Commit

Permalink
Add warnings on MAX_ORDER to prevent them from being removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxpineau committed Mar 2, 2023
1 parent 751baee commit ce1ce50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/mocpy/moc/moc.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class MOC(AbstractMOC):
"""

# Maximum order (or depth) of a MOC
# (do not remove since it may be used externally).
MAX_ORDER = np.uint8(29)

__create_key = object()
Expand Down
1 change: 1 addition & 0 deletions python/mocpy/tmoc/tmoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class TimeMOC(AbstractMOC):
"""Multi-order time coverage class. Experimental."""

# Maximum order of TimeMOCs
# (do not remove since it may be used externally).
MAX_ORDER = np.uint8(61)
# Number of microseconds in a day
DAY_MICRO_SEC = 86400000000.0
Expand Down

0 comments on commit ce1ce50

Please sign in to comment.