Skip to content

Commit

Permalink
Updated packet_source to fix bug with BlackBodySimpleSource.create_pa…
Browse files Browse the repository at this point in the history
…ckets() not taking args or kwargs
  • Loading branch information
nvieira-mcgill committed Jan 27, 2025
1 parent 34c0a4f commit 59b9500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tardis/transport/montecarlo/packet_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def __init__(self, time_explosion=None, **kwargs):
self.time_explosion = time_explosion
super().__init__(**kwargs)

def create_packets(self, no_of_packets):
def create_packets(self, no_of_packets, *args, **kwargs):
"""Generate relativistic black-body packet properties as arrays
Parameters
Expand All @@ -335,7 +335,7 @@ def create_packets(self, no_of_packets):
if self.radius is None or self.time_explosion is None:
raise ValueError("Black body Radius or Time of Explosion isn't set")
self.beta = (self.radius / self.time_explosion) / const.c
return super().create_packets(no_of_packets)
return super().create_packets(no_of_packets, *args, **kwargs)

def create_packet_mus(self, no_of_packets):
"""
Expand Down

0 comments on commit 59b9500

Please # to comment.