You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 gbasf2BatchProcess
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
gb2_proxy_info
here -> PR Use Dirac API for Dirac proxy checking and checking for gbasf2 project existance #51gb2_ds_list
hereget_dirac_user()
The text was updated successfully, but these errors were encountered: