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

Add NEB [WIP] #393

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions janus_core/calculations/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
PathLike,
)
from janus_core.helpers.struct_io import output_structs
from janus_core.helpers.utils import none_to_dict
from janus_core.helpers.utils import none_to_dict, set_minimize_logging


class EoS(BaseCalculation):
Expand Down Expand Up @@ -257,12 +257,9 @@ def __init__(
raise ValueError("Please attach a calculator to `struct`.")

if self.minimize and self.logger:
self.minimize_kwargs["log_kwargs"] = {
"filename": self.log_kwargs["filename"],
"name": self.logger.name,
"filemode": "a",
}
self.minimize_kwargs["track_carbon"] = self.track_carbon
set_minimize_logging(
self.logger, self.minimize_kwargs, self.log_kwargs, track_carbon
)

# Set output files
self.write_kwargs.setdefault("filename", None)
Expand Down
12 changes: 4 additions & 8 deletions janus_core/calculations/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
PostProcessKwargs,
)
from janus_core.helpers.struct_io import input_structs, output_structs
from janus_core.helpers.utils import none_to_dict, write_table
from janus_core.helpers.utils import none_to_dict, set_minimize_logging, write_table
from janus_core.processing.correlator import Correlation
from janus_core.processing.post_process import compute_rdf, compute_vaf

Expand Down Expand Up @@ -492,13 +492,9 @@ def __init__(
self.minimize_kwargs["write_kwargs"] = {"filename": opt_file}

# Use MD logger for geometry optimization
if self.logger:
self.minimize_kwargs["log_kwargs"] = {
"filename": self.log_kwargs["filename"],
"name": self.logger.name,
"filemode": "a",
}
self.minimize_kwargs["track_carbon"] = self.track_carbon
set_minimize_logging(
self.logger, self.minimize_kwargs, self.log_kwargs, track_carbon
)

self.dyn: Langevin | VelocityVerlet | ASE_NPT
self.n_atoms = len(self.struct)
Expand Down
Loading
Loading