Skip to content

Commit

Permalink
Fix for numba_config import
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfullard committed Apr 21, 2021
1 parent cf853e9 commit f9c2645
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tardis/montecarlo/montecarlo_numba/estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
calc_packet_energy_full_relativity,
)

from tardis.montecarlo.montecarlo_numba.numba_config import (
ENABLE_FULL_RELATIVITY,
)


@njit(**njit_dict_no_parallel)
def set_estimators(r_packet, distance, numba_estimator, comov_nu, comov_energy):
Expand Down Expand Up @@ -59,7 +63,7 @@ def update_line_estimators(
( time_explosion * C)
"""

if not numba_config.ENABLE_FULL_RELATIVITY:
if not ENABLE_FULL_RELATIVITY:
energy = calc_packet_energy(r_packet, distance_trace, time_explosion)
else:
energy = calc_packet_energy_full_relativity(r_packet)
Expand Down

0 comments on commit f9c2645

Please sign in to comment.