Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type checking #277

Merged
merged 49 commits into from
Jul 3, 2023
Merged

Type checking #277

merged 49 commits into from
Jul 3, 2023

Conversation

t-young31
Copy link
Member

@t-young31 t-young31 commented Jun 1, 2023

Resolves #237


TODO

  • Resolve conflicts

Checklist

  • The changes include an associated explanation of how/why
  • Test pass
  • Documentation has been updated
  • Changelog has been updated

t-young31 and others added 30 commits January 15, 2023 11:46
…ing (duartegroup#202)

* make autode compatible with windows: replace multiprocessing with joblib and loky

* remove comment autode/utils.py

* check total memory in utils

* use loky for parallel processing

* loky context is used for better handling of parallelisation

* fixes for timeout wrapper in POSIX

* use class instances instead of class attributes for Config

* pass parent Config state into child processes

* keep default timeout wrapper, also add new wrapper

* separate parallelisation scheme for windows, restore default for linux/mac

* fix test_config_in_worker_proc for posix

* codecov on windows

* add tests for config copy

* change config implementation for updating in worker process

* add context manager for temporary config, minor fix in experimental timeout for windows

* add tests for context manager

* use bash for installing xtb in CI runner

* add tests for cleanup after timeout

* exclude setup.py from codecov

* make config picklable and easily readable

* add test and minor fixes

* move xtb install script to .github/scripts

* use temporary_config for test_utils.py

* update changelog and contributor list

* resolve conflicts with v1.4.0

Co-authored-by: Tom Young <39765193+t-young31@users.noreply.github.com>
.gitignore Outdated Show resolved Hide resolved
Copy link
Collaborator

@shoubhikraj shoubhikraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added some comments, though it is a huge amount of code changes, so I need some time to go through all of it. 😄

autode/bracket/imagepair.py Show resolved Hide resolved
autode/bracket/imagepair.py Show resolved Hide resolved
autode/bracket/imagepair.py Show resolved Hide resolved
autode/calculations/calculation.py Show resolved Hide resolved
autode/mol_graphs.py Outdated Show resolved Hide resolved
autode/mol_graphs.py Show resolved Hide resolved
autode/neb/ci.py Outdated Show resolved Hide resolved
autode/opt/coordinates/internals.py Show resolved Hide resolved
autode/opt/optimisers/base.py Outdated Show resolved Hide resolved
autode/opt/optimisers/base.py Outdated Show resolved Hide resolved
autode/opt/optimisers/bfgs.py Outdated Show resolved Hide resolved
autode/opt/coordinates/internals.py Show resolved Hide resolved
@@ -198,7 +202,7 @@ def _step(self) -> None:
self._coords = self._coords + step

step_size = np.linalg.norm(
self._coords.to("cart") - self._history.penultimate.to("cart")
self._coords.to("cart") - self._history.penultimate.to("cart") # type: ignore
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this cause problems with subtraction of valuearray types?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah – to doesn't return a specific enough type 😕
If I were writing it again I think explicit to_cartesian methods etc. would be better

autode/reactions/reaction_types.py Show resolved Hide resolved
autode/solvent/solvents.py Outdated Show resolved Hide resolved
autode/species/molecule.py Outdated Show resolved Hide resolved
autode/species/species.py Outdated Show resolved Hide resolved
autode/transition_states/base.py Show resolved Hide resolved
autode/transition_states/base.py Show resolved Hide resolved
autode/transition_states/base.py Show resolved Hide resolved
autode/wrappers/G09.py Show resolved Hide resolved
autode/wrappers/G09.py Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
@@ -40,7 +40,7 @@ jobs:

- name: Install
run: |
conda install \
mamba install \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why switch from conda to mamba sorry, I don't understand

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just to make the dependency resolution faster. install was taking 20 minutes, and I'm impatient!
https://github.com/duartegroup/autodE/actions/runs/5432666711/jobs/9879860668

(would be awesome if we could get rid of some of them..)

doc/changelog.rst Outdated Show resolved Hide resolved
@t-young31 t-young31 merged commit f9fb7a0 into duartegroup:v1.4.0 Jul 3, 2023
@t-young31 t-young31 deleted the type_checking branch July 3, 2023 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants