Skip to content

Commit 45cc572

Browse files
authored
Merge pull request #275 from sot/kadi-centered-states
Update pitchs in a cmd state test
2 parents a4af477 + f15b551 commit 45cc572

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

cheta/fetch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ class HrcSsMsid(Msid):
19481948

19491949
units = UNITS
19501950

1951-
def __new__(self, msid, start=LAUNCH_DATE, stop=None, stat=None):
1951+
def __new__(cls, msid, start=LAUNCH_DATE, stop=None, stat=None):
19521952
ss_msids = "2TLEV1RT 2VLEV1RT 2SHEV1RT 2TLEV2RT 2VLEV2RT 2SHEV2RT"
19531953
if msid.upper() not in ss_msids.split():
19541954
raise ValueError(

cheta/tests/test_comps.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,14 @@ def test_cmd_states():
197197
dat = fetch_eng.Msid("cmd_state_pitch_1000", start, stop)
198198
exp_vals = np.array(
199199
[
200-
56.25598271,
201-
56.13939258,
202-
56.13939258,
203-
90.92793519,
204-
159.33549823,
205-
173.38189234,
206-
173.38189234,
207-
173.38189234,
200+
56.1436528,
201+
56.1297675,
202+
56.1297675,
203+
86.95490192,
204+
153.55509001,
205+
173.36753413,
206+
173.36753413,
207+
173.36753413,
208208
]
209209
)
210210
assert np.allclose(dat.vals, exp_vals)

0 commit comments

Comments
 (0)