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

nuSQUIDSpy CrossSectionLibrary not found #33

Open
MondalSagnik opened this issue Dec 31, 2022 · 1 comment
Open

nuSQUIDSpy CrossSectionLibrary not found #33

MondalSagnik opened this issue Dec 31, 2022 · 1 comment

Comments

@MondalSagnik
Copy link

nuSQUIDSpy CrossSectionLibrary is not found and ModuleError is thrown, handling it falls to search for the file /xsec/nusigma_ which is not present in the specified directory, the files present are nusigma_proton.h5 and nusigma_neutron.h5. This requires the CrossSectionLibrary and the addTarget feature to work. The boost python bindings in nuSQUIDSpy.cpp shows a suspicious TODO comment saying "Map constructor?". Please help on this.
image
image
image
image

@cnweaver
Copy link
Collaborator

Hi @MondalSagnik, I'm sorry we lost track of this for so long!

Are you still seeing this problem? Without using charon, I'm not able to reproduce this issue:

$ python3
>>> import nuSQuIDS
>>> xs = nuSQuIDS.CrossSectionLibrary()
>>> print(xs)
<nuSQuIDS.CrossSectionLibrary object at 0x10a16d458>

It looks like there might be (have been) something wrong with your or charon's imports, as the CrossSectionLibrary is exposed as expected in the nuSQuIDS module. You can ignore the comments about the map constructor, as the code you're using is trying default-construct an empty library, not construct one from an existing or literal map/dictionary.

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

No branches or pull requests

2 participants