Skip to content

Commit

Permalink
Merge pull request #11 from AlexHls/fix-headless
Browse files Browse the repository at this point in the history
Fix headless
  • Loading branch information
AlexHls authored Mar 1, 2024
2 parents 47509ae + 3f75d52 commit 55b925d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/sccala/asynphot/aks_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@ def aks_correction(
aks_corr_phot, aks_corr_phot_err
"""

matplotlib.use("TkAgg")
try:
matplotlib.use("TkAgg")
except ImportError:
pass
# SN data
a_v, z_hel, mjd_explo = get_sn_info(snname, modelpath=modelpath)

Expand Down
5 changes: 4 additions & 1 deletion src/sccala/interplib/epoch_interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
)
from sccala.utillib.aux import convert_to_flux, convert_to_mag

matplotlib.use("TkAgg")
try:
matplotlib.use("TkAgg")
except ImportError:
pass


class EpochDataSet:
Expand Down

0 comments on commit 55b925d

Please sign in to comment.