Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Restructure/plasma] estimator cleanup #2675

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
d583510
change numberdensity to input
wkerzendorf Apr 30, 2024
7aaba5d
fixed number density
wkerzendorf May 4, 2024
32b22ea
some fixes
wkerzendorf May 5, 2024
261bbad
removing density
wkerzendorf May 6, 2024
df3c406
remove atomic and isotope mass
wkerzendorf May 6, 2024
d05e819
add isotopic_number_density
wkerzendorf May 6, 2024
61f3db5
Merge remote-tracking branch 'upstream/master' into restructure/plasm…
wkerzendorf May 6, 2024
e804942
add opacities package
wkerzendorf May 6, 2024
e573f16
Update imports in property_collections.py, base.py, test_numba_interf…
wkerzendorf May 7, 2024
73f2ddc
Add calculate_transition_probabilities function to util.py in macro_a…
wkerzendorf May 7, 2024
52d5523
Add calculate_transition_probabilities function to util.py in macro_a…
wkerzendorf May 9, 2024
9530fee
Remove unused imports and update plasma properties
wkerzendorf May 9, 2024
2fb7f92
add __init__ to macroatom
wkerzendorf May 9, 2024
6ac3e88
blackify tardis
wkerzendorf May 10, 2024
801c92b
blackified
wkerzendorf May 10, 2024
ae0650d
chore: Update imports and remove unused code
wkerzendorf May 10, 2024
69dc1b5
chore: Add PlanckRadiationField and DilutePlanckRadiationField classes
wkerzendorf May 10, 2024
448d5c4
chore: Update imports and remove unused code
wkerzendorf May 10, 2024
c1dc52d
removed density
wkerzendorf May 13, 2024
f053967
Merge remote-tracking branch 'upstream/master' into restructure/plasm…
wkerzendorf May 20, 2024
17c033c
Merge branch 'restructure/plasma_prepare' into restructure/plasma_opa…
wkerzendorf May 23, 2024
5e02054
ruff output
wkerzendorf Jun 6, 2024
28c4348
cleanup and adding object mode
wkerzendorf Jun 6, 2024
cfffe5b
starting to make radiation_field a thing
wkerzendorf Jun 7, 2024
4e68723
Merge remote-tracking branch 'upstream/master' into restructure/plasm…
wkerzendorf Jun 7, 2024
41779e2
switched over to old tau_sobolev calculation
wkerzendorf Jun 9, 2024
0d1bc4d
renamed function to indicate numba use
wkerzendorf Jun 9, 2024
7cc84a2
Merge branch 'restructure/plasma_opacities' into restructure/plasma_r…
wkerzendorf Jun 9, 2024
c924749
address comments
wkerzendorf Jun 10, 2024
ad5a314
Merge branch 'restructure/plasma_opacities' into restructure/plasma_r…
wkerzendorf Jun 10, 2024
af7e39e
added dilute planckian radiation field
wkerzendorf Jun 11, 2024
36fa4b6
refactor: Convert species lists to proper format in assemble_plasma f…
wkerzendorf Jun 13, 2024
4bc0dd7
moved radiation field into plasma. Resulting in some renames
wkerzendorf Jun 14, 2024
863f281
Merge remote-tracking branch 'upstream/master' into restructure/plasm…
wkerzendorf Jun 19, 2024
2f042f2
some fixes
wkerzendorf Jun 19, 2024
d849f85
black montecarlo
wkerzendorf Jun 19, 2024
3379062
Merge remote-tracking branch 'upstream/master' into restructure/plasm…
wkerzendorf Jun 19, 2024
6feefbe
Merge branch 'restructure/plasma_opacities' into restructure/plasma_r…
wkerzendorf Jun 19, 2024
1786436
chore: Initialize atom data and simulation state in `initialization.py`
wkerzendorf Jun 19, 2024
5740708
updating the documentation
wkerzendorf Jun 19, 2024
92f4e90
feat: Add EstimatedRadiationFieldProperties class for Monte Carlo est…
wkerzendorf Jun 20, 2024
e3f1819
trying to get rid of j_blues in plasma with MC restructure
wkerzendorf Jun 21, 2024
a99fbb8
completely restructure j_blues. Estimators and all.
wkerzendorf Jun 22, 2024
2d7e1c5
cleanup for the restructure
wkerzendorf Jun 22, 2024
63e0e0c
Merge remote-tracking branch 'upstream/master' into restructure/plasm…
wkerzendorf Jul 23, 2024
818c6d4
remove parse_input.py
wkerzendorf Jul 23, 2024
3ec64f1
chore: Refactor radiation field configuration parsing and state creation
wkerzendorf Jul 23, 2024
f1f0cdd
revert astropy_helpers
wkerzendorf Jul 23, 2024
2a7d460
remove astropy_helpers
wkerzendorf Jul 23, 2024
dbc34ac
removed test.txt
wkerzendorf Jul 23, 2024
251d1cb
blackified code
wkerzendorf Jul 23, 2024
e80b15c
Merge branch 'restructure/plasma_radiation_field' into restructure/si…
wkerzendorf Jul 23, 2024
8581bed
Merge branch 'restructure/simulation_from_config_cleanup' into restru…
wkerzendorf Jul 23, 2024
d49a49c
cleanup simulation from merges
wkerzendorf Jul 23, 2024
adbaf7f
fix
wkerzendorf Jul 24, 2024
bb19fdb
remove unused Input
wkerzendorf Jul 24, 2024
aca1099
added description
wkerzendorf Jul 24, 2024
44ffcf9
Merge branch 'restructure/plasma_radiation_field' into restructure/si…
wkerzendorf Jul 24, 2024
54ffe68
blackiefied codebase
wkerzendorf Jul 24, 2024
71a2b13
Merge branch 'restructure/simulation_from_config_cleanup' into restru…
wkerzendorf Jul 24, 2024
2ea3122
cleanup of branch
wkerzendorf Jul 24, 2024
9800fc8
blackify code
wkerzendorf Jul 24, 2024
5914618
Merge branch 'restructure/plasma_radiation_field' into restructure/si…
wkerzendorf Jul 24, 2024
d19e423
chore: Refactor atom data parsing and simulation state initialization
wkerzendorf Jul 24, 2024
49b9819
Merge branch 'restructure/simulation_from_config_cleanup' into restru…
wkerzendorf Jul 24, 2024
b3bf356
restructure logger
wkerzendorf Jul 24, 2024
a22223e
Merge branch 'restructure/simulation_from_config_cleanup' into restru…
wkerzendorf Jul 24, 2024
734ffc8
working on continuum radfield properties
wkerzendorf Jul 24, 2024
d69533a
Refactor continuum processes module structure
wkerzendorf Jul 24, 2024
98f8340
Refactor opacities module structure
wkerzendorf Jul 24, 2024
84671ca
cleanup from restructure
wkerzendorf Jul 25, 2024
bf25313
Merge remote-tracking branch 'upstream/master' into restructure/base_…
wkerzendorf Jul 25, 2024
7782d07
cleanup
wkerzendorf Jul 25, 2024
cfc5078
clean up
wkerzendorf Jul 25, 2024
ee864bb
more cleanup
wkerzendorf Jul 25, 2024
ad4f1b1
Merge remote-tracking branch 'upstream/master' into restructure/base_…
wkerzendorf Jul 25, 2024
0ebcef8
cleanup standard_plasmas.py
wkerzendorf Jul 25, 2024
cf1396a
working nlte ionizations
wkerzendorf Jul 26, 2024
557dde9
Merge remote-tracking branch 'upstream/master' into restructure/base_…
wkerzendorf Jul 26, 2024
5e4902a
some more cleanup
wkerzendorf Jul 26, 2024
9f92256
fix benchmarks
wkerzendorf Jul 26, 2024
cd1badc
Merge remote-tracking branch 'upstream/master' into restructure/base_…
wkerzendorf Jul 26, 2024
bd04642
Merge remote-tracking branch 'upstream/master' into restructure/base_…
wkerzendorf Jul 26, 2024
930462f
blackify
wkerzendorf Jul 27, 2024
9e47b81
reverse the import pygraphviz
wkerzendorf Jul 27, 2024
8d67db8
fix docstrings
wkerzendorf Jul 27, 2024
7d8e6e0
Refactor code to address comments
wkerzendorf Jul 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
restructure logger
  • Loading branch information
wkerzendorf committed Jul 24, 2024
commit b3bf356d241506573c8f7e4a3c10f733c5972fe3
8 changes: 4 additions & 4 deletions tardis/io/model/parse_atom_data.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from tardis.io.atom_data.base import AtomData
from tardis.simulation.initialization import logger


import logging
from pathlib import Path

from tardis.io.atom_data.base import AtomData

logger = logging.getLogger(__name__)

def parse_atom_data(config, atom_data=None):
"""
Expand Down
6 changes: 3 additions & 3 deletions tardis/io/model/parse_packet_source_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def initialize_packet_source(packet_source, config, geometry):
return packet_source


def parse_packet_source_from_config(config, geometry, legacy_mode_enabled):
def parse_packet_source_from_config(config, geometry, enable_legacy_mode):
"""
Parse the packet source based on the given configuration and geometry.

Expand All @@ -66,12 +66,12 @@ def parse_packet_source_from_config(config, geometry, legacy_mode_enabled):
packet_source = BlackBodySimpleSourceRelativistic(
base_seed=config.montecarlo.seed,
time_explosion=config.supernova.time_explosion,
legacy_mode_enabled=legacy_mode_enabled,
legacy_mode_enabled=enable_legacy_mode,
)
else:
packet_source = BlackBodySimpleSource(
base_seed=config.montecarlo.seed,
legacy_mode_enabled=legacy_mode_enabled,
legacy_mode_enabled=enable_legacy_mode,
)

return initialize_packet_source(packet_source, config, geometry)
8 changes: 4 additions & 4 deletions tardis/io/model/parse_simulation_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def parse_simulation_state(
config, packet_source, legacy_mode_enabled, kwargs, atom_data
config, packet_source, enable_legacy_mode, kwargs, atom_data
):
"""
Initialize the simulation state.
Expand Down Expand Up @@ -35,20 +35,20 @@ def parse_simulation_state(
simulation_state = SimulationState.from_csvy(
config,
atom_data=atom_data,
legacy_mode_enabled=legacy_mode_enabled,
legacy_mode_enabled=enable_legacy_mode,
)
else:
simulation_state = SimulationState.from_config(
config,
atom_data=atom_data,
legacy_mode_enabled=legacy_mode_enabled,
legacy_mode_enabled=enable_legacy_mode,
)
if packet_source is not None:
simulation_state.packet_source = initialize_packet_source(
config,
simulation_state.geometry,
packet_source,
legacy_mode_enabled,
enable_legacy_mode,
)

return simulation_state