Skip to content

Commit

Permalink
fixed bug in gp_ecorr kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-baier committed Sep 18, 2024
1 parent 9632217 commit d4d18d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions enterprise_extensions/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,12 @@ def white_noise_block(vary=False, inc_ecorr=False, gp_ecorr=False,
selection=backend_ng, name=name)

else:
ec = white_signals.EcorrKernelNoise(log10_ecorr=ecorr,
selection=backend_ng,
name=name)
if name is None:
ec = white_signals.EcorrKernelNoise(log10_ecorr=ecorr,
selection=backend_ng, name=name)
else:
ec = white_signals.EcorrKernelNoise(log10_ecorr=ecorr,
selection=backend_ng)
# combine signals
if inc_ecorr:
s = efeq + ec
Expand Down
2 changes: 1 addition & 1 deletion enterprise_extensions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def model_singlepsr_noise(psr, tm_var=False, tm_linear=False,
tmparam_list=None,
red_var=True, psd='powerlaw', red_select=None,
noisedict=None, tm_svd=False, tm_norm=True,
white_vary=True, gp_ecorr=False, components=30, upper_limit=False,
white_vary=True, gp_ecorr=True, components=30, upper_limit=False,
is_wideband=False, use_dmdata=False, tnequad=False,
dmjump_var=False, gamma_val=None, dm_var=False,
dm_type='gp', dmgp_kernel='diag', dm_psd='powerlaw',
Expand Down

0 comments on commit d4d18d1

Please sign in to comment.