Skip to content

Commit

Permalink
Remove debugging lines of code
Browse files Browse the repository at this point in the history
  • Loading branch information
aymgal committed Jun 4, 2024
1 parent 9f9ce3c commit b661e1f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion coolest/api/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions coolest/template/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'.")
Expand Down

0 comments on commit b661e1f

Please sign in to comment.