File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -1599,6 +1599,14 @@ def __deepcopy__(self, memo=None):
1599
1599
def copy (self ):
1600
1600
return self .__deepcopy__ ()
1601
1601
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
+
1602
1610
def filter_bad (self , copy = False , union = False ):
1603
1611
"""Filter bad values for the MSID set.
1604
1612
Original file line number Diff line number Diff line change 6
6
import copy
7
7
8
8
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
13
14
14
15
MNF_TIME = 0.25625 # Minor frame time (s)
15
16
You can’t perform that action at this time.
0 commit comments