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

Add res_dt as __init__ kwarg #100

Merged
merged 1 commit into from
Jan 5, 2024
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 python/asteria/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class Simulation:
""" Top-level class for performing ASTERIA's core simulation routine, and handler for the resulting outputs
"""
def __init__(self, config=None, *, model=None, distance=10 * u.kpc, flavors=None, hierarchy=None,
def __init__(self, config=None, *, model=None, distance=10 * u.kpc, res_dt=2 * u.ms, flavors=None, hierarchy=None,
interactions=Interactions, mixing_scheme=None, mixing_angle=None, E=None, Emin=None, Emax=None,
dE=None, t=None, tmin=None, tmax=None, dt=None, geomfile=None, effvolfile=None):
self.param = {}
Expand Down Expand Up @@ -64,7 +64,7 @@ def __init__(self, config=None, *, model=None, distance=10 * u.kpc, flavors=None
self.energy = E
self.time = t
self._sim_dt = _dt
self._res_dt = 2 * u.ms # TODO: Add config/arg option for this
self._res_dt = res_dt
self._res_offset = 0 * u.s # TODO: Add config/arg option for this
if flavors is None:
self.flavors = Flavor
Expand Down
Loading