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 kwargs to simulation context #1277

Merged
merged 6 commits into from
Dec 19, 2023
Merged
Changes from 2 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 straxen/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def xenonnt_simulation_offline(output_folder: str = './strax_data',
run_id: ty.Optional[str] = None,
global_version: ty.Optional[str] = None,
fax_config: ty.Optional[str] = None,
):
**kwargs):
"""
:param output_folder: strax_data folder
:param wfsim_registry: Raw_records generation mechanism,
Expand All @@ -335,7 +335,7 @@ def xenonnt_simulation_offline(output_folder: str = './strax_data',
import wfsim
# General strax context, register common plugins
st = strax.Context(storage=strax.DataDirectory(output_folder),
**straxen.contexts.xnt_common_opts)
**straxen.contexts.xnt_common_opts, **kwargs)
# Register simulation configs required by WFSim plugins
st.config.update(dict(detector='XENONnT',
fax_config=fax_config,
Expand Down