Skip to content

Commit

Permalink
Merge f90be16 into 7312e0b
Browse files Browse the repository at this point in the history
  • Loading branch information
Knights-Templars authored Sep 20, 2023
2 parents 7312e0b + f90be16 commit d00a2c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Atharwa Kharkar <atharwa.kharkar19@vit.edu> atharwa_24 <atharwa.kharkar19@vit.ed

Atul Kumar <kr.atul.atk@gmail.com>

Anirban Dutta <anirbaniamdutta@gmail.com>

Barnabás Barna <bbarna@titan.physx.u-szeged.hu>

Caroline Sofiatti <c.sofiatti@gmail.com>
Expand Down
10 changes: 1 addition & 9 deletions tardis/energy_input/gamma_ray_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,15 +356,7 @@ def main_gamma_ray_loop(
), "Error, simulation start time greater than end time!"

if time_space == "log":
times = np.zeros(time_steps + 1)

# log time steps
for i in range(time_steps + 1):
times[i] = (
np.log(time_start)
+ (np.log(time_end) - np.log(time_start)) / time_steps * i
)
times[i] = np.exp(times[i])
times = np.geomspace(time_start, time_end, time_steps + 1)
else:
times = np.linspace(time_start, time_end, time_steps + 1)

Expand Down

0 comments on commit d00a2c3

Please sign in to comment.