-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improvements to documentation on intermediate level #10
Comments
@wgradl @sebastianJaeger could you give an example of what you would like to see? Then an attempt can be made to improve things and see if the existing infrastructure is sufficient to tackle such shortcomings. |
One issue that is probably easy to resolve:
but then I'm sort of lost how to proceed properly. I've resorted to using something like
for all three repositories, but I'm not expert enough in all things python to be confident that this is how it should be. I also note that in many cases the three packages seem to require slightly different versions of other packages, so that running one of these pip commands after the other may even downgrade installed packages (I'll have to do this again to find a concrete example of this, but I'm pretty sure I've seen this behaviour recently).
Releasing a set of tags that use consistent requirements would be of great help here. |
Hmm, dependencies are indeed a complicated issue in general. First note that there are two things going on here:
So, strictly speaking, if you are writing your own analysis/application with a different combination of packages, you define your own set of dependencies with optional ranges for which your application should work, like in that
Pinning/constraining (or even defining your own docker image) is the only way in which you can avoid this. It's a pain, but afaics it's the only way out of dependency hell. |
As a side note, Conda has its own dependency resolver and works a bit differently. I personally find it a bit obscure (and slow) and therefore prefer to work with
The editable installations here make it impossible to exactly reproduce the environments though, unless you somehow provide instructions as to which Git commits/tags were used. |
Just posting a note here that may be worth investigating: https://documentation.divio.com |
Thank you for the tip regarding conda vs pip ! Maybe this would be a helpful addition to a generic I am not so concerned with reproducing any previous environment, as long as I can then use |
Indeed, this is an example where ampform expects the old qrules interface, not the one on qrules'
Yes, although we were careful to not write too many general tips about software development. Where possible, we refer to sources that provide up-to-date tutorials/tips. Those are collected here: compwa-org.rtfd.io/develop.html, not on the generic install pages for each package. For this example, I guess a section could be written on how to work with editable installs of multiple repositories (I have my reservations about such a setup though). |
It has been pointed out that the documentation for each package lacks explanation on an "intermediate" level. Examples would be "how do I insert my own Flatté shape into the amplitude builder?" or "Why does TensorWaves JIT-compile functions?". This issue is to collect feedback and ideas for this "intermediate" level documentation.
The main documentation pages
The text was updated successfully, but these errors were encountered: