Skip to content

Commit

Permalink
fix numpy and docs warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Dec 4, 2023
1 parent 1facb81 commit 5278ca1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/contribute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Now build package
This step will inform you of any issue in the rust part.

- After a new version of mocpy goes out, if a ``maturin develop --release`` does not actualize your
``Cargo.toml`` file, you might need to before executing the ``maturin`` command again::
``Cargo.toml`` file, you might need to before executing the ``maturin`` command again::

rm Cargo.lock && cargo clean

Expand Down
2 changes: 1 addition & 1 deletion python/mocpy/abstract_moc.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def from_str(cls, value):
See Also
--------
``from_string`` a duplicate of this method, with added ``fold`` option
from_string: a duplicate of this method, with added ``fold`` option
"""
# TODO : decide if we want to remove this duplicated method
return cls.from_string(value, format="ascii")
Expand Down
12 changes: 6 additions & 6 deletions python/mocpy/moc/moc.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,8 +855,8 @@ def from_elliptical_cone(cls, lon, lat, a, b, pa, max_depth, delta_depth=2):
... )
"""
index = mocpy.from_elliptical_cone(
lon,
lat,
lon[0],
lat[0],
np.float64(a.to_value(u.deg)),
np.float64(b.to_value(u.deg)),
np.float64(pa.to_value(u.deg)),
Expand Down Expand Up @@ -908,8 +908,8 @@ def from_cone(cls, lon, lat, radius, max_depth, delta_depth=2):
... )
"""
index = mocpy.from_cone(
lon,
lat,
lon[0],
lat[0],
np.float64(radius.to_value(u.deg)),
np.uint8(max_depth),
np.uint8(delta_depth),
Expand Down Expand Up @@ -970,8 +970,8 @@ def from_ring(
... )
"""
index = mocpy.from_ring(
lon,
lat,
lon[0],
lat[0],
np.float64(internal_radius.to_value(u.deg)),
np.float64(external_radius.to_value(u.deg)),
np.uint8(max_depth),
Expand Down

0 comments on commit 5278ca1

Please sign in to comment.