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
WIP: Base version of Landau pdf #563
base: develop
Are you sure you want to change the base?
Conversation
…r a test suite. Bug in PDF implementation
Thanks for opening the PR, that looks like a good start and about what I had in mind, too! About the PDF, a crucial part are the "if" statements: to be able to use the jit compilation of the underlying backend, the incoming arrays are replaced by "symbolic" arrays. That means, the arrays/tensors don't have an actual value, and therefore, one cannot use Python conditional statements (is the symbolic expression "X > 5" true? Neither, it depends on the X, but as it's symbolic at the moment of jit compilation, it's neither). That means that the if statements have to be vectorized properly using where (sidenote: instead of EDIT: here is also a guide to help better understand what is going on with jitting, conditionals etc There is an additional difficulty probably with the gradient, but just to keep an eye out for "where", where one of the cases creates invalid inputs (feel free to make a comment). Example would be something like
yes, can you please post it here? I just tried to install it with Python 3.9 on Linux and it works, which OS are you using? And which Python version & virtualization (virtualenv, conda?) Also, there seem to be a few conflicts, just minor, as the JohnsonSU was meanwhile added. Can you resolve them (Github interface should work) and pull again? Besides, are you familiar with git, github, conda environments etc? If you need any help, have any questions or are just unsure if something is right, just let us know and we can assist/explain all steps. |
Hi, good to hear that it's going in the right direction. To summarize the things you addressed:
I have middling-to-ok amounts of experience with all the tools, but mostly on an "individualistic" level, i.e. I know how to use the tools, but only when I'm the only one working on the project. I would say I know conda, but especially with git and GitHub, my knowledge is average at best. I'll make sure to ask if something is unclear! |
Sounds good! For the installation, you should also be able to just install |
I just went over this. It's heading towards the right direction. Apart from the |
Hey everyone, a small update. Regarding the testing, I'll make sure to add pylandau as a test requirement and write a basic ROOT-based test. |
Comes with basic documentation and a skeleton for a test suite. Bug in PDF implementation.
I had some problems with installing the environments for dev. When running
pip install -e . "[alldev]"
, it says that there is a conflict between the zfit version some required packages. I run the same commands as described in the "CONTRIBUTING.rst" file but I can add the errors I get in a comment if that would help.Fixes #
Proposed Changes
Tests added
Skeleton for:
Checklist