-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathso_sim.patch
33 lines (33 loc) · 1.2 KB
/
so_sim.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
43,44c43,46
< from .. import ops as so_ops
< from .. import workflows as wrk
---
> from sotodlib.toast import ops as so_ops
> from sotodlib.toast import workflows as wrk
>
> from mappraiser.workflow import setup_mapmaker_mappraiser, mapmaker_mappraiser
77a80,92
> # Handle atmosphere / noise buffers
> nkey, akey = "noise", "atm"
> if job.operators.sim_atmosphere.enabled:
> if job.operators.sim_noise.enabled:
> # the noise simulation operator is enabled
> # the noise key should exist
> toast.ops.Combine(op="add", first=nkey, second=akey, result=nkey).apply(data)
> else:
> # the noise key does not exist
> # copy the atm data into it, then delete it
> toast.ops.Copy(detdata=[(akey, nkey)]).apply(data)
> toast.ops.Delete(detdata=[akey]).apply(data)
>
122a138
> mapmaker_mappraiser(job, otherargs, runargs, data)
125,127c141
< mem = toast.utils.memreport(
< msg="(whole node)", comm=data.comm.comm_world, silent=True
< )
---
> mem = toast.utils.memreport(msg="(whole node)", comm=data.comm.comm_world, silent=True)
251a266,267
>
> setup_mapmaker_mappraiser(parser, operators)