From 4012c289a71d0cba12e62bc646fb4f74b3194155 Mon Sep 17 00:00:00 2001 From: ljgray Date: Wed, 1 Feb 2023 11:53:48 -0800 Subject: [PATCH] fix(transform): Remove explicit copy of time axis in CollateProducts. Instead, the copy_from parameter will handle directly copying all index_map entries, including the time axis. --- draco/analysis/transform.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/draco/analysis/transform.py b/draco/analysis/transform.py index 042834269..aba3ea705 100644 --- a/draco/analysis/transform.py +++ b/draco/analysis/transform.py @@ -203,13 +203,6 @@ def process(self, ss): ss_prod = ss.prod ss_conj = np.zeros(ss_prod.size, dtype=bool) - # Add the time-like axis to the kwargs - output_kwargs = ( - {"ra": ss.ra[:]} - if isinstance(ss, containers.SiderealStream) - else {"time": ss.time[:]} - ) - # Create output container sp = ss.__class__( freq=bt_freq, @@ -220,7 +213,6 @@ def process(self, ss): copy_from=ss, distributed=True, comm=ss.comm, - **output_kwargs, ) # Check if frequencies are already ordered