Skip to content

Commit

Permalink
fix import error
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrammer committed Apr 29, 2024
1 parent e06420f commit f36f77d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion msaexp/resample_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"resample_template_numba",
"sample_gaussian_line_numba",
"pixel_integrated_gaussian_numba",
"compute_igm"
]


Expand Down Expand Up @@ -204,7 +205,7 @@ def pixel_integrated_gaussian_numba(x, mu, sigma, dx=None, normalization=1.0):


@jit(nopython=True, fastmath=True, error_model="numpy")
def calculate_igm(z, wobs, scale_tau=1.):
def compute_igm(z, wobs, scale_tau=1.):
"""
Calculate Inoue+14 IGM transmission
Expand Down
4 changes: 2 additions & 2 deletions msaexp/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def float_representer(dumper, value):
from . import utils as msautils

try:
from .resample_numba import calculate_igm
igm_func = calculate_igm
from .resample_numba import compute_igm
igm_func = compute_igm

except ImportError:
igm = eazy.igm.Inoue14()
Expand Down

0 comments on commit f36f77d

Please sign in to comment.