Skip to content

Commit

Permalink
Adds comments to address notes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfullard committed May 23, 2024
1 parent fa82703 commit f39ce98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmarks/transport_montecarlo_numba_formal_integral_p.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def formal_integral_geometry(self, r):

@property
def time_explosion(self):
# previously used model value that passes tests
# time taken for a photon to move 1 cm
return 1 / c.c.cgs.value

@parameterize({"p": [0.0, 0.5, 1.0], "Test data": TESTDATA})
Expand Down
1 change: 1 addition & 0 deletions tardis/transport/montecarlo/montecarlo_main_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def montecarlo_main_loop(
geometry_state : GeometryState
Simulation geometry
time_explosion : float
Time in seconds
opacity_state : OpacityState
estimators : Estimators
spectrum_frequency : astropy.units.Quantity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def time_explosion():
"""
This gets the time_explosion to be used in later tests
"""
# previously used model value that passes tests
# time taken for a photon to move 1 cm
return 1 / c.c.cgs.value


Expand Down

0 comments on commit f39ce98

Please sign in to comment.