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

Bens bugfix #19

Closed
wants to merge 32 commits into from
Closed

Bens bugfix #19

wants to merge 32 commits into from

Conversation

bnebgen-LANL
Copy link
Collaborator

Various additions to ase interface to make compatible with recent ase changes.

Boogie3D and others added 30 commits April 15, 2022 14:33
…ckpoint.pt, as models and checkpoints save now as .pt
Fix Missing parenthesis in EwaldRealSpaceScreening(AlphaScreening) and WolfScreening(AlphaScreening) in super/base class (AlphaScreening) initialization.
Four additions:
Imported Calculator from ase.calculators.calculator (base Calculator class for ASE).
Made HippynnCalculator inherit Calculator. Strangely, although HippynnCalculator already inherits interface.Calculator, this appears to be the incorrect class, and when running a LinearCombinationCalculator for example, it will say it must inherit Calculator as defined in ase.calculators.calculator.
In the __init__ function for HippynnCalculator, manually added the property "energy" to self.implemented_properties
In the calculate function in HippynnCalculator, add key in self.results, "energy", and set it equal to self.results["potential_energy"]

Added comments on each line added stating that each change is required for using ASE Mixing Calculators
Environment variable HIPPYNN_PROGRESS not handled correctly
Allow HIPNN to work with ASE Mixing Calculators
Fixed missing parenthesis.
Change model.pkl to model.pt, as models now save as .pt
Fix typo, modoel -> model, and change best_checkpoint.pkl to best_checkpoint.pt, as models and checkpoints save now as .pt
Bugfix: Ensuring that indexing tensors are of type torch.long.
Explicitly convert index tensors to int64 in ASE calculator.
* Add a library setting for transparent plots

* Update styles of documentations

* Multiple fixes

1. Ignore files from editable installation
2. code intellisense for tools.py

* Minor update on TRANSPARENT_PLOT doc
Better handling of devices for restarting.

- includes improved documentation files
- new argument model_device when reloading checkpoints
@bnebgen-LANL bnebgen-LANL mentioned this pull request Nov 8, 2022
@lubbersnick lubbersnick deleted the BensBugfix branch November 30, 2022 21:20
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.

5 participants