-
Notifications
You must be signed in to change notification settings - Fork 25
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
Extend run_command to batch execution #940
Comments
Hello @miguelriemoliveira. You already have a function for this: atom/atom_core/src/atom_core/system.py Lines 18 to 31 in cd5725e
I can fuse yours and mine and use only this |
The function execute from atom_core.system has been reformulated. It now prints in "real time" what the subprocess is outputting. It is also now responsible to write stdout and stderr to a file. This has been done in a way that saving in independent of blocking and the filename can have extra addons. Then, this has been added to configure and to batch execution. The configure became significantly simpler, as most local functions have been delegated to this one. Batch execution suffered some changed to adapt to this, but it is now fully functional. To achieve this, the function removeColorsFromText needed to be moved from atom_core.utilities to atom_core.system, to remove circular imports.
This was harder than expected. The function atom/atom_core/src/atom_core/system.py Lines 13 to 86 in cce5f65
It now prints in "real time" what the subprocess is outputting. Then, this has been added to |
As stated in #890, a new function was created to run a command and output in real-time:
atom/atom_calibration/templates/configure
Lines 27 to 48 in cd5725e
This function will be extended to the batch execution in this issue.
The text was updated successfully, but these errors were encountered: