diff --git a/enterprise_extensions/blocks.py b/enterprise_extensions/blocks.py index 8d1ae44..a41ed2c 100644 --- a/enterprise_extensions/blocks.py +++ b/enterprise_extensions/blocks.py @@ -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 diff --git a/enterprise_extensions/models.py b/enterprise_extensions/models.py index 3b4c33d..9fe7c52 100644 --- a/enterprise_extensions/models.py +++ b/enterprise_extensions/models.py @@ -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',