Skip to content

Commit

Permalink
also passing energy injection parameters to afterglowpy when present
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunhopang committed Oct 31, 2024
1 parent b5f17f4 commit 05dc895
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nmma/em/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,11 @@ def generate_lightcurve(self, sample_times, parameters):
grb_param_dict["epsilon_B"] = 10 ** new_parameters["log10_epsilon_B"]
grb_param_dict["z"] = z

# make sure L0, q and ts are also passed
for param in ['L0', 'q', 'ts']:
if param in new_parameters:
grb_param_dict[param] = new_parameters[param]

if "thetaWing" in new_parameters:
grb_param_dict["thetaWing"] = new_parameters["thetaWing"]
if new_parameters["thetaWing"] / new_parameters["thetaCore"] > self.resolution:
Expand Down

0 comments on commit 05dc895

Please sign in to comment.