Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
IAlibay committed Sep 17, 2024
1 parent 6022f4e commit 5bc9f96
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions openfe/protocols/openmm_rfe/equil_rfe_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,10 +1100,15 @@ def structural_analysis(scratch, shared) -> dict:
# TODO: we should just make openfe_analysis write an npz instead!
analysis_out = scratch / 'structural_analysis.json'

ret = subprocess.run(['openfe_analysis', 'RFE_analysis',
str(shared), str(analysis_out)],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
ret = subprocess.run(
['openfe_analysis', # CLI entry point
'RFE_analysis', # CLI option
str(shared), # Where the simulation.nc fille
str(analysis_out) # Where the analysis json file is written
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
if ret.returncode:
return {'structural_analysis_error': ret.stderr}

Expand Down

0 comments on commit 5bc9f96

Please sign in to comment.