>>> from mocpy import STMOC
>>> STMOC.n_cells(0, dimension='space')
12
adds a new file to test abstract moc and remove duplicated save tests
the mocpy.stmoc.STMOC.from_spatial_coverages now also accepts non iterable objects (prevents from having to wrap a single moc in a list each time it's used)
fixed a warning in the notebooks because of max_norder argument that was introduced in a former version
makes the write function call save internally [#114 ]
save now accepts fits_keywords to be added to the header (was needed to keep all of write functionalities)
What the PR does:
(I mixed my commits so this PR does way too much)
n_cells
method to each MOC typesave
testsmocpy.stmoc.STMOC.from_spatial_coverages
now also accepts non iterable objects (prevents from having to wrap a single moc in a list each time it's used)max_norder
argument that was introduced in a former versionwrite
functioncall
save internally [#114 ]fits_keywords
to be added to the header (was needed to keep all ofwrite
functionalities)