Skip to content

Commit 5e35fca

Browse files
committed
MAINT: Fixing imports to reflect namespace change
1 parent 33d78cd commit 5e35fca

File tree

8 files changed

+14
-12
lines changed

8 files changed

+14
-12
lines changed

astroquery/solarsystem/neodys/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class Conf(_config.ConfigNamespace):
1515
"""
16-
Configuration parameters for `astroquery.neodys`.
16+
Configuration parameters for `astroquery.solarsystem.neodys`.
1717
"""
1818
server = _config.ConfigItem(
1919
['https://newton.spacedys.com/~neodys2/epoch/'],

astroquery/solarsystem/neodys/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from . import conf
2-
from ..query import BaseQuery
2+
from astroquery.query import BaseQuery
33

44

55
__all__ = ['NEODyS', 'NEODySClass']

astroquery/solarsystem/neodys/setup_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
def get_package_data():
66
paths_test = [os.path.join('data', '2018vp1_eq0.txt')]
77

8-
return {'astroquery.neodys.tests': paths_test}
8+
return {'astroquery.solarsystem.neodys.tests': paths_test}

astroquery/solarsystem/neodys/tests/test_neodys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import numpy as np
55

66
from astroquery.utils.mocks import MockResponse
7-
from astroquery.neodys import NEODySClass, NEODyS
7+
from astroquery.solarsystem.neodys import NEODySClass, NEODyS
88

99
DATA_FILE = '2018vp1_eq0.txt'
1010

astroquery/solarsystem/neodys/tests/test_neodys_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from astroquery.neodys import NEODyS
3+
from astroquery.solarsystem.neodys import NEODyS
44

55

66
@pytest.mark.remote_data

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ above categories. Those services are here:
401401
jplhorizons/jplhorizons.rst
402402
jplsbdb/jplsbdb.rst
403403
nasa_ads/nasa_ads.rst
404-
neodys/neodys.rst
404+
solarsystem/neodys/neodys.rst
405405
utils/tap.rst
406406

407407

docs/solarsystem/neodys/neodys.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _astroquery.neodys:
22

3-
************************************
4-
NEODyS Queries (`astroquery.neodys`)
5-
************************************
3+
************************************************
4+
NEODyS Queries (`astroquery.solarsystem.neodys`)
5+
************************************************
66

77
Getting started
88
===============
@@ -16,7 +16,7 @@ object to be retrieved. Here is a basic example:
1616

1717
.. doctest-remote-data::
1818

19-
>>> from astroquery.neodys import NEODyS
19+
>>> from astroquery.solarsystem.neodys import NEODyS
2020
>>> result = NEODyS.query_object("1982YA")
2121
>>> print(result)
2222
{'Equinoctial State Vector': [3.6501814973859177, 0.55510840531515, 0.412442615432626, -0.316403600209491, -0.005615261288851, 7.4974723045741],
@@ -49,7 +49,7 @@ Here's an example with these optional parameters:
4949

5050
.. doctest-remote-data::
5151

52-
>>> from astroquery.neodys import NEODyS
52+
>>> from astroquery.solarsystem.neodys import NEODyS
5353
>>> results = NEODyS.query_object("1982YA", orbital_element_type="ke", epoch_near_present=1)
5454
>>> print(results)
5555
{'Keplerian State Vector': [3.64669, 0.691945, 35.165, 268.935, 144.408, 283.498],
@@ -75,5 +75,5 @@ Here's an example with these optional parameters:
7575
Reference/API
7676
=============
7777

78-
.. automodapi:: astroquery.neodys
78+
.. automodapi:: astroquery.solarsystem.neodys
7979
:no-inheritance-diagram:

docs/solarsystem/solarsystem.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ The currently available service providers and services are:
1919
imcce/imcce.rst
2020
jpl/jpl.rst
2121
mpc/mpc.rst
22+
neodys/neodys.rst
2223
pds/pds.rst
2324

2425

26+
2527
Reference/API
2628
=============
2729

0 commit comments

Comments
 (0)