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

New Python interface #71

Draft
wants to merge 107 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
cc044de
Move table loading responsibility to individual fluxes
austinschneider Jun 4, 2024
fa04cb2
__repr__ and __str__ for InteractionSignature
austinschneider Jun 5, 2024
322d987
Whitespace
austinschneider Jun 5, 2024
8b5bbcd
load_module function
austinschneider Jun 5, 2024
ad97eef
Sketch loading logic for DarkNews
austinschneider Jun 5, 2024
226746d
Sketch DN decay logic and fix some obvious issues in the DN xs logic
austinschneider Jun 6, 2024
e88fee6
Return cross sections and decays
austinschneider Jun 6, 2024
c19596f
Introspect package version in __init__.py
austinschneider Jun 6, 2024
79f1b34
Start writing logic to generically load resources
austinschneider Jun 6, 2024
d5bbec4
Remove material model path method
austinschneider Aug 27, 2024
c9a09d1
Needs functools
austinschneider Aug 28, 2024
844e0cd
import struct. Properly return the module from sys.modules. Call exec…
austinschneider Aug 28, 2024
5940dae
docstrings, type hints, and variable names
austinschneider Aug 28, 2024
e33c191
Move cross sections. Fix string formatting
austinschneider Aug 29, 2024
1642d85
cross_Section -> processes
austinschneider Aug 29, 2024
34976e9
Refactor _get_model_path. Add support for top-level loaders
austinschneider Aug 29, 2024
16a7b61
Fix imports. loader -> logger
austinschneider Aug 29, 2024
b81b555
Fix imports
austinschneider Aug 29, 2024
c9dc192
Fix imports. loader -> logger. Instance checking instead of type chec…
austinschneider Aug 29, 2024
fa099a4
Avoid repeated use of np.append
austinschneider Aug 29, 2024
5fbf8e4
Override logging in our own copy of ModelContainer
austinschneider Aug 29, 2024
811780d
Check for DarkNews.ModelContainer.configure_logger in case it is remo…
austinschneider Aug 29, 2024
0b6f53d
Move detector files
austinschneider Aug 30, 2024
8a39ee4
Move detector files into subfolders
austinschneider Aug 30, 2024
6c7d346
Add load_* methods to siren.utilities
austinschneider Aug 30, 2024
0493255
Refactor model path search to just handle folders. Add special load_ …
austinschneider Aug 30, 2024
b59d9d6
Need to defined is_configured ahead of time
austinschneider Aug 30, 2024
8cb75a5
Pass nuclear targets to ModelContainer. Typo "s"
austinschneider Aug 30, 2024
a271cff
Inherit from a common Interaction class to enable a more concise cons…
austinschneider Aug 30, 2024
a2a3dbb
load_process returns maps from particle type to interactions
austinschneider Sep 1, 2024
5492b69
Loader for CSMS splines
austinschneider Sep 1, 2024
ea69003
Move resources
austinschneider Sep 2, 2024
7e5e5f1
un-capitalize folders
austinschneider Sep 2, 2024
55d8dc6
First pass at Injector wrapper
austinschneider Sep 12, 2024
e9443fb
Remvoe the holder
austinschneider Sep 12, 2024
e01cdca
particle type properties for the processes
austinschneider Sep 12, 2024
6e8a5b1
New access methods for process subclasses
austinschneider Sep 12, 2024
23c169a
Add more accessor method for processes
austinschneider Sep 12, 2024
c97cd10
Additional setters and getters
austinschneider Sep 12, 2024
b4e7f6f
Set primary type when setting interactions
austinschneider Sep 12, 2024
4885486
Additional setters and getters
austinschneider Sep 12, 2024
3b62df2
Produce a random seed by default. Getter for seed
austinschneider Sep 12, 2024
61dabf3
Rework Injector wrapper with @property
austinschneider Sep 12, 2024
324699c
Fix some obvious runtime issues
austinschneider Sep 12, 2024
9cecedb
Replace Injector with python wrapper
austinschneider Sep 12, 2024
aae1f78
Fiducial volume utilities
austinschneider Sep 12, 2024
d1902ef
Setter for number of events. Fix initialization checks
austinschneider Sep 12, 2024
6fd09b9
Remove requirement for target_types
austinschneider Sep 12, 2024
bf999b8
Add constructor with contents to pybindings
austinschneider Sep 12, 2024
990e474
Move examples
austinschneider Sep 14, 2024
1b34751
Utilities for string manipulation (mainly inserting tabs)
austinschneider Sep 14, 2024
bb2776d
A few pythonic changes to dataclasses pybindings. Moving ParticleType…
austinschneider Sep 14, 2024
d02b3b7
Add bindings for ParticleID
austinschneider Sep 14, 2024
41768b9
Clean up ParticleID __str__ and __repr__. Implement != operator
austinschneider Sep 14, 2024
ef147b6
Use lambda in favor of separate function pointer
austinschneider Sep 14, 2024
5d8339a
__str__ and __repr__ for InteractionRecord
austinschneider Sep 14, 2024
e7aeb09
to_str --> to_repr
austinschneider Sep 14, 2024
83e609b
__str__ and __repr__ for CrossSectionDistributionRecord and Secondary…
austinschneider Sep 14, 2024
19778c4
Specify namespace for args of forward declared output functions.
austinschneider Sep 14, 2024
764f63d
Add output functions as friends. More specific namespaces.
austinschneider Sep 14, 2024
4c298f1
__str__ and __repr__ for PrimaryDistributionRecord
austinschneider Sep 14, 2024
aee5431
__str__ and __repr__ for Particle
austinschneider Sep 14, 2024
a597bcb
Move detector files
austinschneider Sep 15, 2024
4cc6e93
Fix paths in visualization to match updated directory structure
austinschneider Sep 15, 2024
1a35e9d
Moving paper plots
austinschneider Sep 15, 2024
fb0bdab
primary_type should be an argument
austinschneider Sep 15, 2024
253954a
Add wrapper for Weighter
austinschneider Sep 15, 2024
ceae573
Re-write the DIS_ATLAS example with the new interface. Still need to …
austinschneider Sep 15, 2024
1622a4a
Utilities for exploring and getting docs
austinschneider Sep 15, 2024
0d41fb1
Rename and fix T2K_NEAR flux script to work with new directory struct…
austinschneider Sep 15, 2024
87a76bc
Enable access to resources through the module / tab-complete
austinschneider Sep 16, 2024
b2eda5e
Add file paths to detector docs
austinschneider Sep 16, 2024
254eb2d
Expose resource loader functions in the resources submodule
austinschneider Sep 16, 2024
bc0a31c
Don't require a version folder if there is a top level loader
austinschneider Sep 18, 2024
2477439
Update DIS_DUNE
austinschneider Sep 19, 2024
a5cb6df
Remove position dist from physical dists
austinschneider Sep 19, 2024
35c05c5
DIS_IceCube
austinschneider Sep 19, 2024
f48fdb3
Fix method name
austinschneider Sep 19, 2024
8bf11d7
Remove old function def. Load detector models correctly.
austinschneider Sep 19, 2024
5ebb901
Fix sampling
austinschneider Sep 19, 2024
1f0cd47
DipolePortal_CCM
austinschneider Sep 19, 2024
7a34462
Add ParticleIDs in InteractionRecord to pybindings
marichavest Oct 11, 2024
00164a1
Updates to cmake
austinschneider Oct 12, 2024
6e56833
FPIC for rk_static
austinschneider Oct 12, 2024
404562c
Update pyproject.toml
austinschneider Oct 12, 2024
3ca8e2d
Remove extension
austinschneider Oct 15, 2024
6adc857
Remove methods that are not needed in the python interface
austinschneider Oct 15, 2024
25c4c7e
Add functionality for injecting an unlimited number of events.
austinschneider Oct 15, 2024
f74be46
Fix semicolons in pybindings
austinschneider Oct 16, 2024
82e4905
Dev/serialization (#85)
austinschneider Oct 23, 2024
840da1f
Get example 1 working
nickkamp1 Oct 24, 2024
6210de4
starting to get second example working. adding functionality to save …
nickkamp1 Oct 24, 2024
b3ef5ca
Support for Interaction class
austinschneider Dec 17, 2024
83fe87b
Interaction pybindings
austinschneider Dec 18, 2024
b796350
Install python package from cmake
austinschneider Jan 18, 2025
a1e56c2
CMake based python wheel build should be disabled when using cibuildw…
austinschneider Jan 18, 2025
8089587
Fix kinetic energy definition
austinschneider Jan 18, 2025
9fd2342
Install tomli_w before attempting build
austinschneider Jan 18, 2025
70fc941
Attempt to install tomli-w from inside cmake
austinschneider Jan 18, 2025
fa58f34
pyproject.toml formatting
austinschneider Jan 18, 2025
2dda3cf
Properly install resources
austinschneider Jan 18, 2025
4acf93c
Get import overloads working
austinschneider Jan 18, 2025
4555899
Pickle imports working
austinschneider Jan 18, 2025
cc19ddf
Improved error and warning messages related to import and tab-complet…
austinschneider Feb 15, 2025
ad92f21
python bindings for rk classes
austinschneider Mar 7, 2025
300b6af
Add "InverseCDF" function to TabulatedFluxDistribution
austinschneider Mar 7, 2025
28ea28f
Remove Axis enums from rk::geom3 pybindings
austinschneider Mar 7, 2025
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
Prev Previous commit
Next Next commit
Sketch loading logic for DarkNews
austinschneider committed Sep 15, 2024
commit ad97eef0f672e9f50c3030c4688cfdfa12cc7618
Loading