-
Notifications
You must be signed in to change notification settings - Fork 37
remove operation that should not be in patchmad #813
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
…er file of the plugin
|
Not sure why mg5amc is marked has changed, this is irrelevant for this MR. (so that part can be discarded before merging). |
|
clearly the SA are not working, let's wait to understand why... |
|
Ok Standalone issue is fixed and I have matched the version of madgraph5 directory to the one of master. |
|
Hi @oliviermattelaer thanks a lot, good patch. I made a few minor changes, I will let the CI run and approve and merge if it works. The change I made is that I continue to add those three files counters.cc, ompnumthreads.cc and fbridge_common.inc only in .mad directories, as they are not needed in the standalone case. In the python I did it in a "barbarian" way, you can probably do it better, but otherwise it works. I would have been able to do it better if the self.in_madevent_mode had been defined earlier, but I tested and it only seems to appear towards finalize(), so I did the changes in finalize. I also regenerated all processes (where as you intended two of those files become links in P* to SubProcesses). Ah and I also updated to merge with #811 which I had merged in the meantime. |
valassi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good and the CI seems to be working OK, I will merge when the tests are ok
|
Hi @oliviermattelaer for me thi sis good to go, But rather than merge myself, I ask you to review my changes and then decide if they are ok or you want to do better. Thanks! |
|
@oliviermattelaer It seems I cannot set you (the author) as also reviewer. But let me know in case of issues, or just click yoursle on merge, Thanks |
|
The commit to review is this one |
|
I would say that the clean way to do that is to put an appropriate class hierarchy within output.py. Therefore I would propose the following actions:
What do you think? |
|
Hi @oliviermattelaer thanks. Ok I see your point. Like in many other cases, I think you have a better long term solution, what you propose for the long term makes sense. And like in many other cases, we have a number of hacks and patches (many of these blame them on me) to get things working "in the meantime". My general approach is, lets keep in mind the long term, but in the short term lets try to get this release out ASAP. In other words, lets have short term fixes and keep in mind that they need a cleanup. In this specific case, there are two options:
So I would go for my ugly patch option B. In any case we need to open an issue to develop your better approach. But I would do that on top of my option B, rather than on top of your option A. But you decide :-) Thanks PS Voila I opened issue #814 to work on what you suggest @oliviermattelaer |
|
I do not want to go to B and you do not want to go to A. |
ffa32e1 to
99b060a
Compare
|
So I did change the class structure and done it in a way such that they are no API change for the MG5aMC. So I will try to change the test now and hope to fix them. |
|
@valassi, do I have your go ahead for this merge after my changes? Or do you have reservation on the way I have done stuff? (or ...) Thanks, Olivier |
|
sorry @oliviermattelaer I had no time to look again, I will try this afternoon |
…d add newly generated files in SubProcesses to the repo (those in P1 are now symlinks) ./CODEGEN/allGenerateAndCompare.sh git add *.mad/SubProcesses/counters.cc *.mad/SubProcesses/ompnumthreads.cc
…pcoming merge git checkout upstream/master $(git ls-tree --name-only HEAD */CODEGEN*txt)
… previous ones) into patchmad_nofileeeeeeeeeeeeeeeeeeeee
…sses, no change except in codegen logs
valassi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @oliviermattelaer this is good to go for me. I have added a couple of commits that should be non controversial:
- I regenerated all processes (which was needed as some files had to be added to the repo in SubProcesses, as those in P1* are now symlinks to them)
- I have merged in the latest upstream/master and fixed codegen logs
Please merge this when you want (or tell me and I can do that).
Thanks
|
Thanks, I have done the merge. Olivier |
In this case,
This is the creation of the files which should be done together with the other files in output.py.
My only concern is the definiton of the variable "${dir_patches}" which to my understanding can only take one value...
If this is not the case, then this merge is likely to be refused and I would need to understand how to adapt the file.