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
{{ message }}
Repository navigation
[Code scan] AiiDA workflow script starts work at import time #138
Problem workflow/DpFreeEnergy-aiida.py performs side effects at import/module execution time: it loads an AiiDA profile, reads ../examples/FreeEnergy.json, constructs an AiiDA Dict, and calls TI_workflow(). This makes parser scans or accidental imports capable of starting work or failing on a cwd-dependent path.
The script tries to read ../examples/FreeEnergy.json, which is outside this repository's examples/ directory; if that path existed, it would proceed to run the workflow immediately.
Expected result
Executable workflow code should be guarded by if __name__ == '__main__': and should resolve example paths relative to the script or repository root.
Activity