Welcome to XrayPhysics Discussions! #1
Replies: 8 comments 5 replies
-
I would like to ask, is this module no longer available? |
Beta Was this translation helpful? Give feedback.
-
Sorry, I don't understand your question. What module are you referring to? |
Beta Was this translation helpful? Give feedback.
-
Could you send me your Python script? |
Beta Was this translation helpful? Give feedback.
-
Ya, the way you are importing and setting up this library is incorrect. Did you see the examples here. There are also examples of how to use it in LEAP. See d17_beam_hardening.py and d18_multi-materialBHC.py In addition, the arguments to setBHlookupTable are incorrect. Please refer to the examples provided and the documentation. And finally, your spectrum has negative values which doesn't make any sense. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This is very strange. I was able to reproduce the issue and yes, this is a bug. If you change the low energy kV to 139, it works fine. I'll look into this issue. BTW, I think you have a typo in the definition of filtResp_H. The thickness should be 0.04 because this is the thickness of your low energy detector. |
Beta Was this translation helpful? Give feedback.
-
I believe I fixed the bug. Pull the latest code from the main branch to get the fix. |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions