From 494245b412343cacd246fd906603e1d5c2c9eeb5 Mon Sep 17 00:00:00 2001 From: Camilo Diaz Date: Mon, 15 Jan 2024 18:55:34 -0500 Subject: [PATCH 1/2] fixing error in non-callable module --- src/icesat2_tracks/analysis_db/A02c_IOWAGA_thredds_prior.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/icesat2_tracks/analysis_db/A02c_IOWAGA_thredds_prior.py b/src/icesat2_tracks/analysis_db/A02c_IOWAGA_thredds_prior.py index 2da5d760..8e4fa11e 100644 --- a/src/icesat2_tracks/analysis_db/A02c_IOWAGA_thredds_prior.py +++ b/src/icesat2_tracks/analysis_db/A02c_IOWAGA_thredds_prior.py @@ -5,7 +5,6 @@ import pandas as pd import numpy as np import matplotlib.pyplot as plt -import matplotlib.font_manager as font_for_print from matplotlib.gridspec import GridSpec import xarray as xr from siphon.catalog import TDSCatalog @@ -16,6 +15,7 @@ import icesat2_tracks.local_modules.m_tools_ph3 as MT import icesat2_tracks.local_modules.m_general_ph3 as M from icesat2_tracks.config.IceSAT2_startup import color_schemes +from icesat2_tracks.config.IceSAT2_startup import font_for_print color_schemes.colormaps2(21) @@ -531,7 +531,8 @@ def plot_prior(Prior, axx): ax1.axis("equal") F.save_pup(path=plot_path, name=plot_name + "_hindcast_prior") -except: +except Exception as e: + print(e) print("print 2nd figure failed") MT.json_save( From b43a02cf678877e854845d82d746d93518babee5 Mon Sep 17 00:00:00 2001 From: Camilo Diaz Date: Mon, 15 Jan 2024 19:38:43 -0500 Subject: [PATCH 2/2] added siphon dependency --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4da04acf..8cd27848 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -114,7 +114,8 @@ dependencies = [ # Optional "sliderule==4.1.0", "ipyleaflet", "lmfit", - "tables" + "tables", + "siphon" ] # List additional groups of dependencies here (e.g. development