Skip to content

Commit

Permalink
Fix import in AKSCorrection
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHls committed Feb 29, 2024
1 parent 4f964fe commit 3f75d52
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 3f75d52

Please sign in to comment.