diff --git a/coolest/api/plotting.py b/coolest/api/plotting.py index d52619c..41c0850 100644 --- a/coolest/api/plotting.py +++ b/coolest/api/plotting.py @@ -195,7 +195,6 @@ def plot_model_residuals(self, ax, mask=None, plut.scale_bar(ax, scalebar_size, color='black', loc='lower right') if add_chi2_label is True: num_constraints = np.size(image) if ll_mask is None else np.sum(ll_mask) - print("num_constraints", num_constraints) red_chi2 = np.sum(image**2) / num_constraints ax.text(0.05, 0.05, r'$\chi^2_\nu$='+f'{red_chi2:.2f}', color='black', alpha=1, fontsize=chi2_fontsize, va='bottom', ha='left', transform=ax.transAxes, diff --git a/coolest/template/json.py b/coolest/template/json.py index d671012..4772da7 100644 --- a/coolest/template/json.py +++ b/coolest/template/json.py @@ -109,8 +109,6 @@ def load(self, skip_jsonpickle=False, validate=True, verbose=True): jsonpickle_path = self.path + self._api_suffix + '.json' if os.path.exists(jsonpickle_path) and not skip_jsonpickle: instance = self.load_jsonpickle(jsonpickle_path) - # TODO: the following line is only for backward compatibility and will soon be removed - instance.likelihoods = None else: if verbose: print(f"Template file '{jsonpickle_path}' not found, now trying to read '{json_path}'.")