Skip to content
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

Replace gbasf2 output string parsing with our own scripts interacting with gbasf2 #47

Open
3 of 5 tasks
meliache opened this issue Oct 9, 2020 · 0 comments
Open
3 of 5 tasks
Assignees
Labels
enhancement New feature or request gbasf2 Concerns the gbasf2/grid b2luigi wrapper

Comments

@meliache
Copy link
Collaborator

meliache commented Oct 9, 2020

Assign this to myself, but @philiptgrace was also interested and asked about the string parsing here

Interacting with gbasf2 has to be via subprocesses, there is no other way around, because gbasf2 runs with another environment and another PYTHONPATH than b2luigi. Often, I was just lazy and called the user scripts provided by gbasf2 from the gbasf2 BatchProcess via subprocesses and captured and parsed their output when I needed it.

But it should be more stable to just write for each instance where I need it a short python2 script that directly imports and works with the BelleDirac python package which is available from the gbasf2 environment. Then I could run these scripts as subprocesses and obtain information e.g. via json or returncodes.
It is possible to just import the gbasf2 python packages and work with them.

Places where I could do that replacement of string-parsing via my own scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gbasf2 Concerns the gbasf2/grid b2luigi wrapper
Projects
None yet
Development

No branches or pull requests

1 participant