Skip to content

Commit

Permalink
Merge pull request #16 from climateintelligence/bug_fix
Browse files Browse the repository at this point in the history
adding MPLCONFIGDIR path for matplotlib
  • Loading branch information
cehbrecht authored May 3, 2024
2 parents e23f071 + c1c3828 commit 81ede17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hawk/processes/wps_causal.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import logging
import pandas as pd
from hawk.analysis import CausalAnalysis
import os

LOGGER = logging.getLogger("PYWPS")

Expand Down Expand Up @@ -234,6 +235,7 @@ def _handler(self, request, response):
tefs_max_lag_target = int(request.inputs["tefs_max_lag_target"][0].data)

workdir = Path(self.workdir)
os.environ['MPLCONFIGDIR'] = os.path.join(workdir, "/matplotlib")

if not tefs_use_contemporary_features and tefs_max_lag_features == 0:
raise ValueError("You cannot use no lag features and not use contemporary features in TEFS.")
Expand Down

0 comments on commit 81ede17

Please sign in to comment.