b0ad8540b0aafd020da4d524399edf7fd58a35fe,qcengine/programs/molpro.py,MolproHarness,compute,#MolproHarness#Any#Any#,56
Before Change
job_inputs = self.build_input(input_data, config)
// Run Molpro
exe_success, proc = execute(job_inputs["commands"],
infiles=job_inputs["infiles"],
outfiles=["dispatch.out", "dispatch.xml", "dispatch.wfu"],
scratch_directory=job_inputs["scratch_directory"],
timeout=None
)
// Determine whether the calculation succeeded
output_data = {}
if not exe_success:
output_data["success"] = False
output_data["error"] = {"error_type": "internal_error",
"error_message": proc["stderr"]
}
return FailedOperation(
success=output_data.pop("success", False), error=output_data.pop("error"), input_data=output_data)
// If execution succeeded, collect results
result = self.parse_output(proc["outfiles"], input_data)
return result
// TODO Additional features
After Change
// Run Molpro
proc = self.execute(job_inputs)
if isinstance(proc, FailedOperation):
return proc
else:
// If execution succeeded, collect results
result = self.parse_output(proc["outfiles"], input_data)
return result
def execute(self, inputs, extra_outfiles=None, extra_commands=None, scratch_name=None, timeout=None):
if extra_outfiles is not None:
outfiles = ["dispatch.out", "dispatch.xml", "dispatch.wfu"].extend(extra_outfiles)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 14
Instances
Project Name: MolSSI/QCEngine
Commit Name: b0ad8540b0aafd020da4d524399edf7fd58a35fe
Time: 2019-06-13
Author: sjrl423@gmail.com
File Name: qcengine/programs/molpro.py
Class Name: MolproHarness
Method Name: compute
Project Name: MolSSI/QCEngine
Commit Name: b0ad8540b0aafd020da4d524399edf7fd58a35fe
Time: 2019-06-13
Author: sjrl423@gmail.com
File Name: qcengine/programs/molpro.py
Class Name: MolproHarness
Method Name: compute
Project Name: MolSSI/QCEngine
Commit Name: 9de328c136d33640fc61b64a1fe0386f2c8cf420
Time: 2019-06-03
Author: sjrl423@gmail.com
File Name: qcengine/programs/entos.py
Class Name: EntosHarness
Method Name: compute
Project Name: MolSSI/QCEngine
Commit Name: 1895a1e954eb0ee668deffe0de9b2207b5c04c9c
Time: 2019-06-07
Author: lori.burns@gmail.com
File Name: qcengine/programs/mp2d.py
Class Name: MP2DHarness
Method Name: compute
Project Name: MolSSI/QCEngine
Commit Name: 76d930ec1fe1e18300c835ddf938afd943d4ad05
Time: 2019-06-10
Author: lori.burns@gmail.com
File Name: qcengine/programs/dftd3.py
Class Name: DFTD3Harness
Method Name: compute