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

Updated packet_source to fix bug with BlackBodySimpleSource.create_pa… #2962

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Changes from all commits
Commits
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
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 @@
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 @@
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)

Check warning on line 338 in tardis/transport/montecarlo/packet_source.py

View check run for this annotation

Codecov / codecov/patch

tardis/transport/montecarlo/packet_source.py#L338

Added line #L338 was not covered by tests

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