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

Merge/alexwenym #29

Merged
merged 45 commits into from
Sep 21, 2023
Merged

Merge/alexwenym #29

merged 45 commits into from
Sep 21, 2023

Conversation

austinschneider
Copy link
Collaborator

Fixes to get ranged injection with ATLAS working

austinschneider and others added 25 commits June 24, 2023 09:45
* atlas notebook, added some pybindings

* updates to SNe Ranged injection

* incremental changes for atlas injection, columndepth debug ongoing

* added some pybindings to help debug classes Path and ColumnDepthPositionDistribution

* Fix column depth unit conversions. Fix unsigned integer overflow in bounds clipping. Fix spacing.

* Special case for constructing 180deg rotation Quaternion for a rotation between opposing directions.

* Include what you use

* Convert from detector coordinates to earth coordinates before checking bounds

* Removed extra files, some may need to be added to resources later

* TreeWeighter constructor w/o secondary processes

* Delete Doxyfile

Removing unnecessary file

---------

Co-authored-by: Alex Wen <[email protected]>
Co-authored-by: Alex Wen <[email protected]>
Co-authored-by: Alex Wen <[email protected]>
Co-authored-by: Alex Wen <[email protected]>
Co-authored-by: Philip Weigel <[email protected]>
@nickkamp1 nickkamp1 self-requested a review September 6, 2023 20:17
@austinschneider
Copy link
Collaborator Author

The main code changes in this PR look good already.
The main items tackled are:

  • Handling a co-linear edge case for 180deg rotations in LI::math::rotation_between, which produces a Quaternion from two Vector3D objects
  • Fixing an unsigned integer underflow in EarthModel::GetOuterBounds
  • Additional pybindings for the detector module
  • pybindings for Quaternion
  • Coordinate system transformation fixes in DecayRangePositionDistribution::GenerationProbability, and ColumnDepthPositionDistribution::GenerationProbability
  • Add a constructor to TreeWeighter that does not require secondary processes

However, there are a couple things that we should clean up before merging:

  • The jupyter notebooks, python scripts, and makefiles in the resources folder should be deleted
    • It is fine if we have some dedicated examples, but we should put these into an examples folder, and it is probably best to do this in a separate PR
  • The extra .dat detector definitions need to be cleaned up
    • We can similarly put these into a separate PR

@austinschneider
Copy link
Collaborator Author

The first round of build system changes are now done, and the include statements have been rearranged to adhere to the "include what you use" paradigm. Hopefully this improves the build times a little bit.

I also cleaned up some of the files that we don't want to make it into the main branch.

There are still further build system changes that need to be completed, but I believe this is stable enough to merge into the main branch (provided that the build tests pass).

@nickkamp1 if you could review the changes soon I think we can go ahead and do a squash merge.

Copy link
Collaborator

@nickkamp1 nickkamp1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good, and I am able to build the libraries and pybindings without issue. Approving PR

@nickkamp1 nickkamp1 merged commit 4c35379 into main Sep 21, 2023
14 checks passed
@austinschneider austinschneider deleted the merge/alexwenym branch January 10, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants