Skip to content

Commit

Permalink
fix notebook; fix typo in nu
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-baier committed Mar 6, 2025
1 parent 9630b40 commit c37dc33
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nb_templates/process_v1.1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
" # to temporarily address current inconsistency between enterprise <= v3.1.0 and pint implementations\n",
" mo_new = lu.convert_enterprise_equads(mo_new)\n",
" \n",
" except OSError as e:\n",
" except (OSError, ValueError) as e:\n",
" log.warning(f\"Unable to read noise chains from {tc.get_noise_dir()}: {e}\")\n",
" else:\n",
" mo = mo_new\n",
Expand Down
2 changes: 1 addition & 1 deletion nb_templates/process_v1.2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
" mo_new = nu.add_noise_to_model(mo_new, using_wideband = using_wideband, base_dir=tc.get_noise_dir(), \n",
" compare_dir=tc.get_compare_noise_dir(), no_corner_plot=tc.get_no_corner())\n",
" \n",
" except OSError as e:\n",
" except (OSError, ValueError) as e:\n",
" log.warning(f\"Unable to read noise chains from {tc.get_noise_dir()}: {e}\")\n",
" else:\n",
" mo = mo_new\n",
Expand Down
4 changes: 2 additions & 2 deletions src/pint_pal/noise_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def analyze_noise(
try:
noise_core = co.Core(chaindir=chaindir)
except:
log.error(f"Could not load noise run from {chaindir}. Make sure the path is correct.
Also make sure you have an up-to-date la_forge installation. ")
log.error(f"Could not load noise run from {chaindir}. Make sure the path is correct." \
+"Also make sure you have an up-to-date la_forge installation. ")
raise ValueError(f"Could not load noise run from {chaindir}. Check path and la_forge installation.")
if sampler == 'PTMCMCSampler':
# standard burn ins
Expand Down

0 comments on commit c37dc33

Please sign in to comment.