Skip to content

Commit

Permalink
add check for missing files in visualization notebook (#307)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefanos Chatzimichelakis <s.chatzimichelakis@iccs.gr>
  • Loading branch information
mezger6 and Stefanos Chatzimichelakis authored Jan 25, 2025
1 parent bc609ab commit 45b6ce5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/notebooks/visualization_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,9 @@
" pth_posterior = os.path.join(data_posterior, f)\n",
" # Load TROPOMI/GEOS-Chem and Jacobian matrix data from the .pkl file\n",
" obj = load_obj(pth)\n",
" # If there is no corresponding file in data_posterior dir, skip\n",
" if not os.path.isfile(pth_posterior):\n",
" continue\n",
" obj_posterior = load_obj(pth_posterior)\n",
" # If there aren't any TROPOMI observations on this day, skip\n",
" if obj[\"obs_GC\"].shape[0] == 0:\n",
Expand Down

0 comments on commit 45b6ce5

Please sign in to comment.