Skip to content

Commit 2e6bb9c

Browse files
committed
Passing initial tests
1 parent 404d053 commit 2e6bb9c

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

cheta/fetch.py

+8
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,14 @@ def __deepcopy__(self, memo=None):
15991599
def copy(self):
16001600
return self.__deepcopy__()
16011601

1602+
def set_hi_res_times(self):
1603+
"""Update MSID timestamps to have minor frame time resolution.
1604+
This makes the MSID ``times`` match MAUDE. (TODO: better explanation)
1605+
"""
1606+
fmt_intervals = None
1607+
for msid in self.values():
1608+
msid.set_hi_res_times(fmt_intervals)
1609+
16021610
def filter_bad(self, copy=False, union=False):
16031611
"""Filter bad values for the MSID set.
16041612

cheta/time_offsets.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
import copy
77

88
import numpy as np
9-
from Ska.engarchive import fetch_eng as fetch
10-
from Ska.engarchive.utils import logical_intervals, state_intervals
11-
from Ska.tdb import msids as tdb_msids
12-
from Ska.tdb import tables
9+
from ska_tdb import msids as tdb_msids
10+
from ska_tdb import tables
11+
12+
from cheta import fetch_eng as fetch
13+
from cheta.utils import logical_intervals, state_intervals
1314

1415
MNF_TIME = 0.25625 # Minor frame time (s)
1516

0 commit comments

Comments
 (0)