Skip to content

Commit d6165f9

Browse files
authored
Merge pull request #263 from mkelley/add-field-to-obs-doc
Doctest fixes.
2 parents 22981f1 + bfe3cdb commit d6165f9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
env: PYTHON_VERSION=3.6
4646
NUMPY_VERSION=1.17
4747
ASTROPY_VERSION=3
48+
SETUP_CMD='test --coverage'
4849

4950
- os: linux
5051
stage: Tests with various Astropy/Numpy versions
@@ -72,8 +73,8 @@ jobs:
7273
- os: linux
7374
stage: Remote data tests and coverage
7475
env: DEBUG=True
75-
ASTROPY_VERSION=3
76-
SYNPHOT_VERSION="0.1.*"
76+
ASTROPY_VERSION=4
77+
SYNPHOT_VERSION="0.3.*"
7778
SETUP_CMD='test --coverage -R -V -a "--durations=50"'
7879

7980
install:
@@ -86,6 +87,6 @@ script:
8687
- $MAIN_CMD $SETUP_CMD
8788

8889
after_success:
89-
- if [[ $SETUP_CMD == 'test --coverage -R -V -a "--durations=50"' ]]; then
90+
- if [[ $SETUP_CMD == 'test --coverage'* ]]; then
9091
codecov;
9192
fi

docs/sbpy/data/obs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ would like to obtain the data.
4242
<TableColumns names=('number','desig','discovery','note1','note2','epoch','RA','DEC','mag','band','observatory')>
4343
>>> data_sup = data.supplement(id_field='desig') # doctest: +REMOTE_DATA
4444
>>> data_sup.field_names # doctest: +REMOTE_DATA
45-
<TableColumns names=('number','desig','discovery','note1','note2','epoch','RA_obs','DEC_obs','mag','band','observatory','targetname','H','G','solar_presence','flags','RA','DEC','RA_app','DEC_app','RA*cos(Dec)_rate','DEC_rate','AZ','EL','AZ_rate','EL_rate','sat_X','sat_Y','sat_PANG','siderealtime','airmass','magextinct','V','illumination','illum_defect','sat_sep','sat_vis','ang_width','PDObsLon','PDObsLat','PDSunLon','PDSunLat','SubSol_ang','SubSol_dist','NPole_ang','NPole_dist','EclLon','EclLat','r','r_rate','delta','delta_rate','lighttime','vel_sun','vel_obs','elong','elongFlag','alpha','lunar_elong','lunar_illum','sat_alpha','sunTargetPA','velocityPA','OrbPlaneAng','constellation','TDB-UT','ObsEclLon','ObsEclLat','NPole_RA','NPole_DEC','GlxLon','GlxLat','solartime','earth_lighttime','RA_3sigma','DEC_3sigma','SMAA_3sigma','SMIA_3sigma','Theta_3sigma','Area_3sigma','RSS_3sigma','r_3sigma','r_rate_3sigma','SBand_3sigma','XBand_3sigma','DoppDelay_3sigma','true_anom','hour_angle','alpha_true','PABLon','PABLat')>
45+
<TableColumns names=('number','desig','discovery','note1','note2','epoch','RA_obs','DEC_obs','mag','band','observatory','targetname','H','G','solar_presence','flags','RA','DEC','RA_app','DEC_app','RA*cos(Dec)_rate','DEC_rate','AZ','EL','AZ_rate','EL_rate','sat_X','sat_Y','sat_PANG','siderealtime','airmass','magextinct','V','surfbright','illumination','illum_defect','sat_sep','sat_vis','ang_width','PDObsLon','PDObsLat','PDSunLon','PDSunLat','SubSol_ang','SubSol_dist','NPole_ang','NPole_dist','EclLon','EclLat','r','r_rate','delta','delta_rate','lighttime','vel_sun','vel_obs','elong','elongFlag','alpha','lunar_elong','lunar_illum','sat_alpha','sunTargetPA','velocityPA','OrbPlaneAng','constellation','TDB-UT','ObsEclLon','ObsEclLat','NPole_RA','NPole_DEC','GlxLon','GlxLat','solartime','earth_lighttime','RA_3sigma','DEC_3sigma','SMAA_3sigma','SMIA_3sigma','Theta_3sigma','Area_3sigma','RSS_3sigma','r_3sigma','r_rate_3sigma','SBand_3sigma','XBand_3sigma','DoppDelay_3sigma','true_anom','hour_angle','alpha_true','PABLon','PABLat')>
4646
>>> data_sup['r'] # doctest: +SKIP
4747
[1.87637455 1.87638696 1.87639935 1.8891401 1.88915504 1.88916999
4848
1.88918492 1.88963885 1.88964435 1.88965078 1.8896515 1.88965233

sbpy/photometry/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class DiskIntegratedPhaseFunc(Fittable1DModel):
176176
>>> # contain the H and G parameters
177177
>>> elem = Orbit.from_horizons('Ceres') # doctest: +REMOTE_DATA
178178
>>> print(elem['targetname','H','G']) # doctest: +REMOTE_DATA
179-
<QTable masked=True length=1>
179+
<QTable length=1>
180180
targetname H G
181181
mag
182182
str17 float64 float64

0 commit comments

Comments
 (0)