Skip to content

Commit bec69d0

Browse files
authored
Merge pull request #68 from acisops/namespace_and_answers
Change namespace package imports and update answers after updated sun position calculation
2 parents ebefc28 + 8b66296 commit bec69d0

File tree

177 files changed

+40328
-40330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+40328
-40330
lines changed

acis_thermal_check/apps/acisfp_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import matplotlib
1717
from astropy.table import Table
1818
from cxotime import CxoTime
19-
from Ska.Matplotlib import cxctime2plotdate
19+
from ska_matplotlib import cxctime2plotdate
2020

2121
from acis_thermal_check import ACISThermalCheck, get_options, mylog
2222

acis_thermal_check/apps/cea_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import sys
1515

1616
import matplotlib
17-
from Ska.Matplotlib import pointpair
17+
from ska_matplotlib import pointpair
1818

1919
from acis_thermal_check import ACISThermalCheck, get_options, mylog
2020
from acis_thermal_check.utils import PredictPlot

acis_thermal_check/main.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@
77
from pathlib import Path, PurePath
88
from pprint import pformat
99

10+
import cheta.fetch_sci as fetch
1011
import matplotlib
1112
import matplotlib.pyplot as plt
1213
import numpy as np
13-
import Ska.DBI
14-
import Ska.engarchive.fetch_sci as fetch
15-
import Ska.Numpy
14+
import ska_numpy
1615
from astropy.io import ascii
1716
from astropy.table import Table
1817
from cxotime import CxoTime
1918
from kadi import events
20-
from Ska.Matplotlib import cxctime2plotdate, plot_cxctime, pointpair
19+
from ska_matplotlib import cxctime2plotdate, plot_cxctime, pointpair
2120
from xija.get_model_spec import get_xija_model_spec
2221

2322
import acis_thermal_check
@@ -280,7 +279,7 @@ def get_ephemeris(self, start, stop, times):
280279
e = fetch.MSIDset(msids, start - 2000.0, stop + 2000.0)
281280
ephem = {}
282281
for msid in msids:
283-
ephem[msid] = Ska.Numpy.interpolate(e[msid].vals, e[msid].times, times)
282+
ephem[msid] = ska_numpy.interpolate(e[msid].vals, e[msid].times, times)
284283
return ephem
285284

286285
def get_states(self, tlm, T_init):
@@ -940,7 +939,7 @@ def make_validation_plots(self, tlm, model_spec, outdir):
940939
pred["roll"] = model.comp["roll"].mvals
941940

942941
# Interpolate the model and data to a consistent set of times
943-
idxs = Ska.Numpy.interpolate(
942+
idxs = ska_numpy.interpolate(
944943
np.arange(len(tlm)),
945944
tlm["date"],
946945
model.times,
@@ -1541,7 +1540,7 @@ def get_telem_values(self, tstart, days=14):
15411540
outnames = ["date"] + [name_map.get(x, x) for x in telem_msids]
15421541
vals = {name_map.get(x, x): msidset[x].vals for x in telem_msids}
15431542
vals["date"] = msidset.times
1544-
out = Ska.Numpy.structured_array(vals, colnames=outnames)
1543+
out = ska_numpy.structured_array(vals, colnames=outnames)
15451544

15461545
# tscpos needs to be converted to steps and must be in the right direction
15471546
out["tscpos"] *= -397.7225924607

acis_thermal_check/tests/acisfp/answers/APR0217B/states.dat

Lines changed: 639 additions & 639 deletions
Large diffs are not rendered by default.
Binary file not shown.

acis_thermal_check/tests/acisfp/answers/AUG2517C/states.dat

Lines changed: 175 additions & 175 deletions
Large diffs are not rendered by default.
Binary file not shown.

acis_thermal_check/tests/acisfp/answers/AUG3017A/states.dat

Lines changed: 255 additions & 255 deletions
Large diffs are not rendered by default.
Binary file not shown.

acis_thermal_check/tests/acisfp/answers/JUL2717A/states.dat

Lines changed: 286 additions & 286 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)