Skip to content

Commit

Permalink
Hide toast import
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Oct 4, 2023
1 parent 65e05be commit c1d2763
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mpi/TOASTFiller.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from toast.tod import TODCache
from toast import qarray as qa
from spt3g import core, calibration, dfmux
import numpy
from .MPIAccumulator import MPIAccumulator
Expand All @@ -24,6 +22,7 @@ def extractor(self, frame):
self.invkeys = {k: i for i,k in enumerate(self.keys)}

if frame.type == core.G3FrameType.Calibration:
# from toast import qarray as qa
#self.detquat = {k: qa.from_angles(v.y_offset/core.G3Units.rad, v.x_offset/core.G3Units.rad, 0) for k,v in frame['BolometerProperties'].items()}
self.detquat = None

Expand All @@ -40,6 +39,8 @@ def __call__(self, frame):
if frame.type != core.G3FrameType.EndProcessing:
return rv

from toast.tod import TODCache

# Build TOAST TOD from our full data set, now that we have it
toastobses = []
for obs,scans in self.mpia.fullobs.items():
Expand Down

0 comments on commit c1d2763

Please sign in to comment.