From c1d276370bc133dbae680ab0056b8d7615319890 Mon Sep 17 00:00:00 2001 From: Sasha Rahlin Date: Wed, 4 Oct 2023 13:42:02 -0500 Subject: [PATCH] Hide toast import --- mpi/TOASTFiller.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mpi/TOASTFiller.py b/mpi/TOASTFiller.py index b10508cf..d5cb929c 100644 --- a/mpi/TOASTFiller.py +++ b/mpi/TOASTFiller.py @@ -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 @@ -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 @@ -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():