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

feat: add 4 dimensional vector object #248

Merged
merged 11 commits into from
Jan 8, 2024
Merged

Conversation

osbornjd
Copy link
Contributor

@osbornjd osbornjd commented Dec 14, 2023

BEGINRELEASENOTES

ENDRELEASENOTES

Copy link
Contributor

@tmadlener tmadlener left a comment

Choose a reason for hiding this comment

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

Thanks. I think this looks good with a few minor corrections.

There are some vector utilities that have been added by EIC here: utils/include/edm4hep/utils/vector_utils.h. I am not sure if you also want to add this one there, or if you want to wait with that until there is a need to do it.

Usually pre-commit will fail because the README.md has links to the different types in the YAML file and it checks whether they point to the right place. You can easily fix this via the scripts/updateReadmeLinks.py script.

edm4hep.yaml Outdated Show resolved Hide resolved
edm4hep.yaml Outdated Show resolved Hide resolved
@osbornjd
Copy link
Contributor Author

There are some vector utilities that have been added by EIC here: utils/include/edm4hep/utils/vector_utils.h

I'll work on implementing some of these, as they would probably be useful in the long run

edm4hep.yaml Outdated Show resolved Hide resolved
@osbornjd
Copy link
Contributor Author

I added some basic operator functionality for the 4 vectors. I think that should be sufficient for now and if we need more functionality, I can come back and add it in a future PR.

@osbornjd
Copy link
Contributor Author

What is the best way to test the build failure? This builds for me locally in my environment and all tests pass, so I'm not sure how best to debug. I did re-test with the precommit run --all-files and these seem to pass now

@tmadlener
Copy link
Contributor

I think the build failures are in the c+17 builds. There is a vector_utils_legacy.h that get's dropped in in case there are no concepts available yet:

#if !__cpp_concepts
#include <edm4hep/utils/vector_utils_legacy.h>
#else

So you would have to implement at least the vector_XYZ specializations for Vector4f there.

@osbornjd
Copy link
Contributor Author

Looks like everything passes except that a test in an fcc build seg faults. What is the best way for me to test this locally as I don't see these tests in the repo?

@tmadlener
Copy link
Contributor

tmadlener commented Dec 21, 2023

That seems to be unrelated to this change and I am not entirely sure whether the downstream workflow is already supposed to be working. It has been a bit finicky in the past. For me this is as good as CI gets at the moment. Thanks for taking care of the legacy vector utils.

@osbornjd
Copy link
Contributor Author

Okay sounds good, thanks for letting me know. In that case, if it is not too much of an issue would you mind creating a release after merging this PR? It is not urgent with the holidays coming up, so there is absolutely no rush on this

@tmadlener
Copy link
Contributor

I will wait with merging until after the break even though this should not break anything. If nothing has happened after a few days in January, can you ping me again? A new tag is no problem.

@osbornjd
Copy link
Contributor Author

Sounds great, will do. Thanks for your help!

@osbornjd
Copy link
Contributor Author

osbornjd commented Jan 4, 2024

Unless there are any further changes requested (and now since it is after the holiday break), are there any objections to merge this and create a new release?

@tmadlener tmadlener changed the title feat: add 4 vector object feat: add 4 dimensional vector object Jan 8, 2024
@tmadlener tmadlener enabled auto-merge (squash) January 8, 2024 09:07
@tmadlener tmadlener merged commit 65547db into key4hep:main Jan 8, 2024
8 of 9 checks passed
@tmadlener
Copy link
Contributor

There is a new tag and there is also a PR in spack to pick it up: spack/spack#41987

@osbornjd osbornjd deleted the 245-4vector branch January 8, 2024 12:45
@osbornjd
Copy link
Contributor Author

osbornjd commented Jan 8, 2024

Thanks very much for the new tag!

@wdconinc
Copy link
Contributor

wdconinc commented Jan 8, 2024

Merged in spack.

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.

Add 4D vector object
3 participants