-
Notifications
You must be signed in to change notification settings - Fork 1
Run scripts with python #104
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
Conversation
* HERA: Add data_url Swap x1/x2 Update arxiv ref for HERA c/b Rename ylabel again Fail as early as possible Add dateset suffix to the resulting directory Make HERA metadata canonical Write metadata into the grid Fix wrong location Install deps only when they are not there Switch to `pyo3` branch for pineappl Check for `maturin` before installing it Add HERA metadata
|
Still missing:
|
* 'runpy' of github.com:NNPDF/runcards: Fix postrun, move compression to python
* master: Decrease statistics Only add patches if there are any Set minimum invariant masses for ATLAS 3D DY Split up ATLAS_2JET_7TEV_R06 runcards Disable pole cancellation checks for dijets Add system to apply patches Split up CMS_2JET_7TEV runcards Add support for user-defined minimum tau Add comment to point out a small bug Remove `set_error_estimation` Switch Madgraph5's branch from 3.2.0 to 3.1.2 Set Higgs widths to zero if external
|
I actually reproduced your issue, seems like it's a bad interplay between poetry and the differential dependencies of |
* 'runpy' of github.com:NNPDF/runcards: Add pylint and pass theory explicitly
|
@cschwan just as a heads up: starting from 286f423 you have to explicitly pass a path to a theory runcard to the script (as we always intended) - this is for the moment used only inside yadism for mg5 we need to face https://github.com/NNPDF/runcards/blob/e3cc517833888dd54d2b142104a338350f1b77e9/runcardsrunner/external/mg5.py#L59 for the moment I provided the theories 200 = default NNLO (actually not working with the pip version of |
|
Commit 15f33fc fixes a problem when Python 2 is the default: |
|
Now it is working even with python 3.7 (since I'm installing But it would not work with 15f33fc @cschwan, because that piece of code was making use of It looks to me that |
|
@alecandido I see... The problem is that you directly call |
|
Yeah, I thought about something like The reason is that I'm installing poetry with We can have a look into poetry to see what they suggest for python 2 (if they care at all). Nevertheless remember that poetry is used only for development, in production you will install the package and it will provide the |
|
Just to recap the status of the business:
On a separate level there is:
because this I could do in no time if we change the theory to contain all the information here: If there are any other business left merge it here, but the three above are the only ones that imo we need before merging, the ones left in the op, and this last one on theory could be faced later on (they are further upgrades with respect to |
|
Regarding interactivity I'd say none at all (even if there was in |
Possible solutions:
This is for poetry, so it's as described here (notice that it's the unreleased version of poetry, but it is said to use that from stable, because they are transitioning from a script name to another). Hope this will solve the issue (in an elegant way), I'll try tomorrow. If instead you're problem had been (and it's not) inside the environment, i.e. you want to use a different version of python, then for that one there are documented ways available. |
|
The runner, both the installation with |
|
In commit d56bd86 I'm switching to the same branch of Madgraph5 that's also used in master; this might've lead to differences in the past (at some points we did a comparison and noticed small numerical differences, which are probably explained by this). |
You're welcome, I'm glad to here it
Thank you! Now or we face immediately the theory in madgraph:
or we just merge and complete everything else afterwards. |
|
I'll merge this first thing on Monday, and we can open a new Issue for the remaining tasks. |
|
I've merged this, and all remaining issues are listed here: #108. |
Reorganize run scripts in a unique python package
run.py(steal fromyadism) ba28f12pre-commitcc4416crun_dis.sh&run_dis.pypineapplto madgraph (for a yadism run, python package should be sufficient)run.sh(reproduce behavior when dir already exists) 2e8d43arun_implement_user_defined_cuts.pycuts_codeandcuts_variableswith master 07f6f3fupdate_metadata.sh->update03665f8merge_grids.sh->mergeThey will all receive a corresponding command to be run with
poetry run <cmd>or directly as<cmd>from inside the environment.