RagnarB83 / ash

ASH is a Python-based computational chemistry and QM/MM environment, primarily for molecular calculations in the gas phase, explicit solution, crystal or protein environment.
GNU General Public License v2.0
52 stars 12 forks source link

Consistent return of job-functions #343

Closed RagnarB83 closed 1 year ago

RagnarB83 commented 1 year ago

Need to change this once and for all.

Idea:

All job-functions return a Results object.

Results object will have attributes such as:

Used like this : results = Optimizer(theory=t, fragment=f)

results.energy results.geometry results.thermochemistry

All attributes of Results object can be found by: vars(results) results.dict

Document the Results object clearly.

Alternative: Return a regular dictionary

RagnarB83 commented 1 year ago

done. Now a Results object, documented here: https://ash.readthedocs.io/en/latest/job-types.html#output-object-of-ash-job-types