Skip to content

Commit

Permalink
fix some of josh's requests
Browse files Browse the repository at this point in the history
  • Loading branch information
wkerzendorf committed Jan 13, 2024
1 parent 2447542 commit 8e0f3a9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 0 additions & 3 deletions tardis/grid/tests/test_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
import pandas as pd

import tardis

from pathlib import Path
import tardis.grid as grid


DATA_PATH = Path(tardis.__path__[0]) / "grid" / "tests" / "data"


Expand Down
4 changes: 2 additions & 2 deletions tardis/io/model_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from radioactivedecay.utils import Z_DICT, elem_to_Z

from tardis.io.configuration.config_reader import ConfigurationNameSpace
from tardis.montecarlo.base import MontecarloTransportSolver
from tardis.montecarlo.base import MonteCarloTransportSolver

Check warning on line 15 in tardis/io/model_reader.py

View check run for this annotation

Codecov / codecov/patch

tardis/io/model_reader.py#L15

Added line #L15 was not covered by tests
from tardis.montecarlo.packet_source import (
BlackBodySimpleSource,
BlackBodySimpleSourceRelativistic,
Expand Down Expand Up @@ -726,7 +726,7 @@ def transport_from_hdf(fname):
)

# Creating a transport object and storing data
new_transport = MontecarloTransportSolver(
new_transport = MonteCarloTransportSolver(

Check warning on line 729 in tardis/io/model_reader.py

View check run for this annotation

Codecov / codecov/patch

tardis/io/model_reader.py#L729

Added line #L729 was not covered by tests
spectrum_frequency=d["spectrum_frequency_cgs"],
virtual_spectrum_spawn_range=d["virtual_spectrum_spawn_range"],
disable_electron_scattering=d["disable_electron_scattering"],
Expand Down
2 changes: 0 additions & 2 deletions tardis/model/parse_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pandas as pd
from astropy import units as u

from tardis import constants as const
from tardis import constants as const
from tardis.io.model.parse_density_configuration import (
calculate_density_after_time,
Expand Down Expand Up @@ -595,7 +594,6 @@ def parse_packet_source(config, geometry):
If both t_inner and luminosity_requested are None.
"""

if config.montecarlo.enable_full_relativity:
packet_source = BlackBodySimpleSourceRelativistic(

Check warning on line 598 in tardis/model/parse_input.py

View check run for this annotation

Codecov / codecov/patch

tardis/model/parse_input.py#L598

Added line #L598 was not covered by tests
base_seed=config.montecarlo.seed,
Expand Down
2 changes: 1 addition & 1 deletion tardis/montecarlo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


# TODO: refactor this into more parts
class MontecarloTransportSolver(HDFWriterMixin):
class MonteCarloTransportSolver(HDFWriterMixin):
"""
This class is designed as an interface between the Python part and the
montecarlo C-part
Expand Down
4 changes: 2 additions & 2 deletions tardis/simulation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from tardis.io.util import HDFWriterMixin
from tardis.model import SimulationState
from tardis.montecarlo import montecarlo_configuration as mc_config_module
from tardis.montecarlo.base import MontecarloTransportSolver
from tardis.montecarlo.base import MonteCarloTransportSolver
from tardis.montecarlo.montecarlo_numba.r_packet import (
rpacket_trackers_to_dataframe,
)
Expand Down Expand Up @@ -708,7 +708,7 @@ def from_config(
)
transport = kwargs["transport"]
else:
transport = MontecarloTransportSolver.from_config(
transport = MonteCarloTransportSolver.from_config(
config,
packet_source=simulation_state.packet_source,
enable_virtual_packet_logging=virtual_packet_logging,
Expand Down

0 comments on commit 8e0f3a9

Please sign in to comment.