Skip to content

Commit caba8fd

Browse files
committed
Fix bib tests for newly moved Ephem
1 parent bc2de71 commit caba8fd

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

sbpy/data/tests/test_ephem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,6 @@ def test_bib(self):
224224

225225
with bib.Tracking():
226226
orbit = Orbit.from_dict(CERES)
227-
oo_ephem = Ephem.from_oo(orbit, scope="basic")
228-
assert "sbpy.data.ephem.Ephem.from_oo" in bib.show()
227+
Ephem.from_oo(orbit, scope="basic")
228+
assert "sbpy.data.ephem.core.Ephem.from_oo" in bib.show()
229229
bib.reset()

sbpy/data/tests/test_ephem_remote.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_Earthlocation(self):
9898
def test_bib(self):
9999
with bib.Tracking():
100100
Ephem.from_horizons(['Ceres', 'Pallas'])
101-
assert 'sbpy.data.ephem.Ephem.from_horizons' in bib.show()
101+
assert 'sbpy.data.ephem.core.Ephem.from_horizons' in bib.show()
102102
bib.reset()
103103

104104
def test_timescale(self):
@@ -300,7 +300,7 @@ def test_queryfail(self):
300300
def test_bib(self):
301301
with bib.Tracking():
302302
Ephem.from_mpc(['Ceres', 'Pallas'])
303-
assert 'sbpy.data.ephem.Ephem.from_mpc' in bib.show()
303+
assert 'sbpy.data.ephem.core.Ephem.from_mpc' in bib.show()
304304
bib.reset()
305305

306306

@@ -399,8 +399,8 @@ def test_queryfail(self):
399399

400400
def test_bib(self):
401401
with bib.Tracking():
402-
data = Ephem.from_miriade(['Ceres', 'Pallas'])
403-
assert 'sbpy.data.ephem.Ephem.from_miriade' in bib.show()
402+
Ephem.from_miriade(['Ceres', 'Pallas'])
403+
assert 'sbpy.data.ephem.core.Ephem.from_miriade' in bib.show()
404404
bib.reset()
405405

406406

sbpy/data/tests/test_obs_remote.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_jplhorizons(self):
6767
assert len(data.field_names) > len(obs.field_names)
6868
assert 'targetname_eph' in data.field_names
6969

70-
assert 'sbpy.data.ephem.Ephem.from_horizons' in bib.to_text()
70+
assert 'sbpy.data.ephem.core.Ephem.from_horizons' in bib.to_text()
7171

7272
def test_mpc(self):
7373
bib.track()
@@ -77,7 +77,7 @@ def test_mpc(self):
7777
data = obs.supplement(service='mpc')
7878
assert len(data.field_names) > len(obs.field_names)
7979

80-
assert 'sbpy.data.ephem.Ephem.from_mpc' in bib.to_text()
80+
assert 'sbpy.data.ephem.core.Ephem.from_mpc' in bib.to_text()
8181

8282
def test_miriade(self):
8383
bib.track()
@@ -87,7 +87,7 @@ def test_miriade(self):
8787
data = obs.supplement(service='miriade')
8888
assert len(data.field_names) > len(obs.field_names)
8989

90-
assert 'sbpy.data.ephem.Ephem.from_miriade' in bib.to_text()
90+
assert 'sbpy.data.ephem.core.Ephem.from_miriade' in bib.to_text()
9191

9292
def test_breaks(self):
9393
obs = Obs.from_dict({'epoch': Time([2451200, 2451201], format='jd'),

sbpy/dynamics/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def from_ephem(
388388
389389
Parameters
390390
----------
391-
eph : ~sbpy.data.ephem.Ephem
391+
eph : ~sbpy.data.ephem.core.Ephem
392392
Ephemeris object, must have time, position, and velocity. Position
393393
and velocity may be specified using ("x", "y", "z", "vx", "vy", and
394394
"vz"), or ("ra", "dec", "Delta", "RA*cos(Dec)_rate", "Dec_rate",

0 commit comments

Comments
 (0)