Skip to content

Commit

Permalink
Changing C_INV to use constants
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit2p committed Feb 13, 2025
1 parent 13c9a31 commit c7defc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tardis/spectrum/formal_integral.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import scipy.sparse as sp
import scipy.sparse.linalg as linalg
from astropy import units as u
from astropy.constants import c
from numba import njit, prange
from scipy.interpolate import interp1d

Expand All @@ -22,7 +23,7 @@
from tardis.transport.montecarlo.configuration import montecarlo_globals
from tardis.transport.montecarlo.configuration.constants import SIGMA_THOMSON

C_INV = 3.33564e-11
C_INV = (1 / c.cgs.value) # Convert to inverse of speed of light in cgs units
PI = np.pi
KB_CGS = 1.3806488e-16
H_CGS = 6.62606957e-27
Expand Down

0 comments on commit c7defc9

Please sign in to comment.