Skip to content

Commit

Permalink
importing scipy.sparse.linalg
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacgsmith committed Oct 4, 2021
1 parent 44acad2 commit af31603
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tardis/montecarlo/montecarlo_numba/formal_integral.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import numpy as np
import pandas as pd
import scipy.sparse as sp
import scipy.sparse.linalg as linalg
from scipy.interpolate import interp1d
from astropy import units as u
from tardis import constants as const
Expand Down Expand Up @@ -414,7 +415,7 @@ def make_source_function(self):
inv_N = sp.identity(no_lvls) - Q
e_dot_u_vec = np.zeros(no_lvls)
e_dot_u_vec[e_dot_u_src_idx] = e_dot_u[shell].values
C_frame[shell] = sp.linalg.spsolve(inv_N.T, e_dot_u_vec)
C_frame[shell] = linalg.spsolve(inv_N.T, e_dot_u_vec)

e_dot_u.index.names = [
"atomic_number",
Expand Down

0 comments on commit af31603

Please sign in to comment.