Skip to content

Commit

Permalink
requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
asewnath committed Oct 3, 2023
1 parent 7d891ae commit 05bbe21
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
16 changes: 11 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
pyyaml>=6.0
pycodestyle>=2.8.0
netCDF4>=1.5.3
pycodestyle>=2.9.1
netCDF4>=1.6.1
matplotlib>=3.5.2
cartopy>=0.20.2
scikit-learn>=1.0.2
xarray>=0.11.3
cartopy>=0.21.1
scikit-learn>=1.1.2
xarray>=2022.6.0
seaborn>=0.12.2
hvplot>=0.8.2
nbconvert>=6.5.4
bokeh>=3.1.1
geopandas>=0.13.2
geoviews>=1.10.0
7 changes: 7 additions & 0 deletions requirements_emc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyyaml>=6.0
pycodestyle>=2.8.0
netCDF4>=1.5.3
matplotlib>=3.5.2
cartopy>=0.20.2
scikit-learn>=1.0.2
xarray>=0.11.3
7 changes: 7 additions & 0 deletions src/eva/plotting/batch/base/plot_tools/figure_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ def figure_driver(config, data_collections, timing, logger):
# --------------------
backend = graphics_section.get('plotting_backend')

if backend == 'Hvplot':
try:
import hvplot
except ImportError:
logger.abort("The hvplot backend is not available since hvplot is not in the environment.")
backend = 'Emcpy'

# Create handler
# --------------
handler_class_name = backend + 'FigureHandler'
Expand Down

0 comments on commit 05bbe21

Please sign in to comment.