@@ -194,7 +194,7 @@ def itp(a, obsvbl):
194194 if conf .a_snapshots is not None :
195195 for a in conf .a_snapshots :
196196 obsvbl = cond (jnp .logical_and (a_prev < a , a <= a_next ),
197- partial (itp , a ), lambda * args : obsvbl , obsvbl )
197+ partial (itp , a ), lambda * args : obsvbl , obsvbl )
198198
199199 obsvbl ['ptcl_prev' ] = ptcl
200200
@@ -212,7 +212,7 @@ def observe_init(a, ptcl, obsvbl, cosmo, conf):
212212 # all output snapshots
213213 obsvbl ['snapshots' ] = {
214214 a_snap : Particles (ptcl .conf , ptcl .pmid , jnp .zeros_like (ptcl .disp ),
215- vel = jnp .zeros_like (ptcl .vel ))
215+ vel = jnp .zeros_like (ptcl .vel ))
216216 for a_snap in conf .a_snapshots
217217 }
218218 # the nbody a step of output snapshots, (,]
@@ -227,13 +227,13 @@ def observe_adj(a_prev, a_next, ptcl, ptcl_cot, obsvbl, obsvbl_cot, cosmo, cosmo
227227 if conf .a_snapshots is not None :
228228 for a_snap , a_step in zip (conf .a_snapshots , obsvbl ['snap_a_step' ]):
229229 ptcl_cot , cosmo_cot = cond (a_step [1 ] == a_next , itp_next_adj ,
230- lambda * args : (ptcl_cot , cosmo_cot ),
231- ptcl_cot , cosmo_cot , obsvbl_cot ['snapshots' ][a_snap ],
232- ptcl , a_step [0 ], a_step [1 ], a_snap , cosmo )
230+ lambda * args : (ptcl_cot , cosmo_cot ),
231+ ptcl_cot , cosmo_cot , obsvbl_cot ['snapshots' ][a_snap ],
232+ ptcl , a_step [0 ], a_step [1 ], a_snap , cosmo )
233233 ptcl_cot , cosmo_cot = cond (a_step [1 ] == a_prev , itp_prev_adj ,
234- lambda * args : (ptcl_cot , cosmo_cot ),
235- ptcl_cot , cosmo_cot , obsvbl_cot ['snapshots' ][a_snap ],
236- ptcl , a_step [0 ], a_step [1 ], a_snap , cosmo )
234+ lambda * args : (ptcl_cot , cosmo_cot ),
235+ ptcl_cot , cosmo_cot , obsvbl_cot ['snapshots' ][a_snap ],
236+ ptcl , a_step [0 ], a_step [1 ], a_snap , cosmo )
237237
238238 return ptcl_cot , cosmo_cot
239239
@@ -244,9 +244,9 @@ def observe_adj_init(a, ptcl, ptcl_cot, obsvbl, obsvbl_cot, cosmo, cosmo_cot, co
244244 # check if the last ptcl is used in interpolation
245245 for a_snap , a_step in zip (conf .a_snapshots , obsvbl ['snap_a_step' ]):
246246 ptcl_cot , cosmo_cot = cond (a_step [1 ] == a , itp_next_adj ,
247- lambda * args : (ptcl_cot , cosmo_cot ),
248- ptcl_cot , cosmo_cot , obsvbl_cot ['snapshots' ][a_snap ],
249- ptcl , a_step [0 ], a_step [1 ], a_snap , cosmo )
247+ lambda * args : (ptcl_cot , cosmo_cot ),
248+ ptcl_cot , cosmo_cot , obsvbl_cot ['snapshots' ][a_snap ],
249+ ptcl , a_step [0 ], a_step [1 ], a_snap , cosmo )
250250
251251 return ptcl_cot , cosmo_cot
252252
0 commit comments