Skip to content

Commit

Permalink
New Gaussian job and handlers (#328)
Browse files Browse the repository at this point in the history
* Add the start of the Gaussian handler

* Add the start of the Gaussian job

* Add the start of the Gaussian custodian

* Add matplotlib to requirements

* Define better_scf_guess job

* Correct scf cycles error handling

* Add an option to check convergence as a function of iterations

* Implement opt_steps error handling

* Implement solute_solvent_surface error handling

* Change integration grid

* Update Gaussian integration grids

* Generate a better geom guess at a lower LOT

* Update better_guess job to be used with OPT and SCF job types

* Add more error definitions

* Add integral keyword to route_parameters

* Remove empty spaces in route_params dict

* Plot convergence only if data is available

* Restart opt calc if it appears to be converging

* Correct torsion error handler

* Cleanups

* Handle more errors

* Cleanups

* Correct how the integration grid is read

* Correct the conversion of convergence data to floats

* Correct the error of internal coords by performing opt using cart coords and disabling symmetry

* Handle insufficient memory

* Fix bug in reading scf parameters

* Add wall time handler

* Postprocess job

* Add the start of the Gaussian handler

* Add the start of the Gaussian job

* Add the start of the Gaussian custodian

* Define better_scf_guess job

* Correct scf cycles error handling

* Add an option to check convergence as a function of iterations

* Implement opt_steps error handling

* Implement solute_solvent_surface error handling

* Change integration grid

* Update Gaussian integration grids

* Generate a better geom guess at a lower LOT

* Update better_guess job to be used with OPT and SCF job types

* Add more error definitions

* Add integral keyword to route_parameters

* Remove empty spaces in route_params dict

* Plot convergence only if data is available

* Restart opt calc if it appears to be converging

* Correct torsion error handler

* Cleanups

* Handle more errors

* Cleanups

* Correct how the integration grid is read

* Correct the conversion of convergence data to floats

* Correct the error of internal coords by performing opt using cart coords and disabling symmetry

* Handle insufficient memory

* Fix bug in reading scf parameters

* Add wall time handler

* Postprocess job

* Add gaussian dependencies

* Add docstrings and use directory as input arg

* Add terminate function to kill Gaussian job

* Update Gaussian custodian version

* Use directory as input

* Bug fixes

* Linting

* Linting

* Update Gaussian custodian version

* Cleanups

* Remove old backup_gaussian_files function

* Add Gaussian handler docstrings

* Update docstrings

* Update docstrings

* Fix typo in WallTimeErrorHandler

* Add Gaussian tests

* Add Gaussian test files

* Deactivate better guess after running test

* Remove duplicate tearDown func

* Correct class name

* Change rwf assertion statement

* Linting

* Bug fix in matching error type

* Replace actual Gaussian checkpoint files with mock ones

* Gzip Gaussian output files

* move matplotlib import into _monitor_convergence

* add type annotations to GaussianJob

* Change better_guess func name in tests

* Add type annotations to GaussianErrorHandler

* `float` instead of `int | float` for mem

* New Gaussian plugin  (#325)

* Change better_guess func name in tests

* Add type annotations to GaussianErrorHandler

* `float` instead of `int | float` for mem

* ruff str format fixes, date assert refactor, rename test jobs

* Fix issue with gaussian .gz files

---------

Co-authored-by: Rasha <atwi.r@husky.neu.edu>
  • Loading branch information
janosh and rashatwi committed Apr 24, 2024
1 parent 4db74b9 commit 8f83e59
Show file tree
Hide file tree
Showing 53 changed files with 2,205 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
rev: v0.3.5
hooks:
- id: ruff
args: [--fix, --ignore, D]
args: [--fix, --ignore, D, --unsafe-fixes]
- id: ruff-format

- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
10 changes: 10 additions & 0 deletions custodian/gaussian/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
This package implements various Gaussian Jobs and Error Handlers.
"""

__author__ = "Rasha Atwi"
__version__ = "0.1"
__maintainer__ = "Rasha Atwi"
__email__ = "rasha.atwi@stonybrook.edu"
__status__ = "Alpha"
__date__ = "5/13/21"

0 comments on commit 8f83e59

Please sign in to comment.