Skip to content

Commit

Permalink
Merge 04be2ff into 14084ae
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHls authored Oct 4, 2023
2 parents 14084ae + 04be2ff commit 08df900
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tardis/montecarlo/montecarlo_numba/formal_integral.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import pdb

from tardis.montecarlo.montecarlo_numba.numba_config import SIGMA_THOMSON
from tardis.montecarlo import montecarlo_configuration as mc_config_module
from tardis.montecarlo.montecarlo_numba import njit_dict, njit_dict_no_parallel
from tardis.montecarlo.montecarlo_numba.numba_interface import (
opacity_state_initialize,
Expand Down Expand Up @@ -359,6 +360,12 @@ def raise_or_return(message):
'and line_interaction_type == "macroatom"'
)

if mc_config_module.CONTINUUM_PROCESSES_ENABLED:
return raise_or_return(

Check warning on line 364 in tardis/montecarlo/montecarlo_numba/formal_integral.py

View check run for this annotation

Codecov / codecov/patch

tardis/montecarlo/montecarlo_numba/formal_integral.py#L364

Added line #L364 was not covered by tests
"The FormalIntegrator currently does not work for "
"continuum interactions."
)

return True

def calculate_spectrum(
Expand Down

0 comments on commit 08df900

Please sign in to comment.