Skip to content

Commit

Permalink
change defualt for get_template_blm
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Belkner committed Jul 2, 2023
1 parent 08941c9 commit d2fce98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion delensalot/core/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ def get_blt_it(self, simidx, it):
if simidx in self.simidxs_mf:
dlm_mod = (dlm_mod - np.array(rec.load_plms(self.libdir_MAPidx, [it]))/self.Nmf) * self.Nmf/(self.Nmf - 1)
if it<=rec.maxiterdone(self.libdir_MAPidx):
blt = self.itlib_iterator.get_template_blm(it, it, lmaxb=self.lm_max_blt[0], lmin_plm=np.max([self.Lmin,5]), dlm_mod=dlm_mod, perturbative=False, k=self.k)
blt = self.itlib_iterator.get_template_blm(it, it-1, lmaxb=self.lm_max_blt[0], lmin_plm=np.max([self.Lmin,5]), dlm_mod=dlm_mod, perturbative=False, k=self.k)
np.save(fn_blt, blt)
return np.load(fn_blt)

Expand Down
2 changes: 1 addition & 1 deletion delensalot/sims/sims_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def get_sim_phi(self, simidx, space):
if space == 'map':
phi = self.geom_lib.alm2map(phi, lmax=self.phi_lmax, mmax=self.phi_lmax, nthreads=4)
else:
print('phi field at {} is {}'.format(opj(self.libdir_phi, self.fnsP.format(simidx)), self.phi_field))
# print('phi field at {} is {}'.format(opj(self.libdir_phi, self.fnsP.format(simidx)), self.phi_field))
if self.phi_space == 'map':
phi = np.array(load_file(opj(self.libdir_phi, self.fnsP.format(simidx))), dtype=float)
else:
Expand Down

0 comments on commit d2fce98

Please sign in to comment.