Skip to content

Commit

Permalink
Refactor code to address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wkerzendorf committed Jul 29, 2024
1 parent 8d67db8 commit 3fdce9a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
4 changes: 1 addition & 3 deletions tardis/energy_input/gamma_packet_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
doppler_factor_3d,
get_index,
)
from tardis.opacities.compton_opacity_calculation import (
compton_opacity_calculation,
)
from tardis.opacities.opacities import (
SIGMA_T,
compton_opacity_calculation,
kappa_calculation,
pair_creation_opacity_artis,
pair_creation_opacity_calculation,
Expand Down
4 changes: 1 addition & 3 deletions tardis/energy_input/gamma_ray_estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
angle_aberration_gamma,
doppler_factor_3d,
)
from tardis.opacities.compton_opacity_calculation import (
compton_opacity_calculation,
)
from tardis.opacities.opacities import (
SIGMA_T,
compton_opacity_calculation,
kappa_calculation,
photoabsorption_opacity_calculation,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from tardis.plasma.properties.base import Input
from tardis.plasma.properties.continuum_processes.rates import H


class PhotoIonRateCoeff(Input):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import numpy as np
import pandas as pd

import tardis.constants as const
from tardis.plasma.properties.base import Input, ProcessingPlasmaProperty
from tardis.plasma.properties.continuum_processes.rates import C, H
from tardis.transport.montecarlo.estimators.util import (
bound_free_estimator_array2frame,
integrate_array_by_blocks,
)

C = const.c.cgs.value


class StimRecombRateFactor(Input):
"""
Expand Down
2 changes: 1 addition & 1 deletion tardis/transport/montecarlo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
MonteCarloConfiguration,
configuration_initialize,
)
from tardis.transport.montecarlo.estimators.dilute_blackbody_properties import (
from tardis.transport.montecarlo.estimators.mc_rad_field_solver import (
MCRadiationFieldPropertiesSolver,
)
from tardis.transport.montecarlo.estimators.radfield_mc_estimators import (
Expand Down
2 changes: 1 addition & 1 deletion tardis/transport/montecarlo/montecarlo_transport_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from astropy import units as u

from tardis.io.util import HDFWriterMixin
from tardis.transport.montecarlo.estimators.dilute_blackbody_properties import (
from tardis.transport.montecarlo.estimators.mc_rad_field_solver import (
MCRadiationFieldPropertiesSolver,
)
from tardis.spectrum.formal_integral import IntegrationError
Expand Down

0 comments on commit 3fdce9a

Please sign in to comment.