hillclimber 0.1.0a1__py3-none-any.whl → 0.1.0a3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of hillclimber might be problematic. Click here for more details.
- hillclimber/__init__.py +20 -5
- hillclimber/actions.py +29 -3
- hillclimber/analysis.py +636 -0
- hillclimber/biases.py +293 -0
- hillclimber/cvs.py +691 -284
- hillclimber/interfaces.py +45 -5
- hillclimber/metadynamics.py +110 -34
- hillclimber/opes.py +357 -0
- hillclimber/selectors.py +127 -2
- hillclimber/virtual_atoms.py +335 -0
- {hillclimber-0.1.0a1.dist-info → hillclimber-0.1.0a3.dist-info}/METADATA +59 -1
- hillclimber-0.1.0a3.dist-info/RECORD +17 -0
- hillclimber-0.1.0a1.dist-info/RECORD +0 -13
- {hillclimber-0.1.0a1.dist-info → hillclimber-0.1.0a3.dist-info}/WHEEL +0 -0
- {hillclimber-0.1.0a1.dist-info → hillclimber-0.1.0a3.dist-info}/entry_points.txt +0 -0
- {hillclimber-0.1.0a1.dist-info → hillclimber-0.1.0a3.dist-info}/licenses/LICENSE +0 -0
hillclimber/__init__.py
CHANGED
|
@@ -1,18 +1,33 @@
|
|
|
1
|
-
from hillclimber.actions import
|
|
2
|
-
from hillclimber.
|
|
3
|
-
from hillclimber.
|
|
1
|
+
from hillclimber.actions import PrintAction
|
|
2
|
+
from hillclimber.analysis import sum_hills, read_colvar, plot_cv_time_series
|
|
3
|
+
from hillclimber.biases import RestraintBias, UpperWallBias, LowerWallBias
|
|
4
|
+
from hillclimber.cvs import DistanceCV, AngleCV, CoordinationNumberCV, TorsionCV, RadiusOfGyrationCV
|
|
5
|
+
from hillclimber.metadynamics import MetadBias, MetaDynamicsConfig, MetaDynamicsModel
|
|
6
|
+
from hillclimber.opes import OPESBias, OPESConfig, OPESModel
|
|
4
7
|
from hillclimber.selectors import IndexSelector, SMARTSSelector, SMILESSelector
|
|
8
|
+
from hillclimber.virtual_atoms import VirtualAtom
|
|
5
9
|
|
|
6
10
|
__all__ = [
|
|
7
|
-
"
|
|
11
|
+
"PrintAction",
|
|
8
12
|
"DistanceCV",
|
|
13
|
+
"AngleCV",
|
|
9
14
|
"CoordinationNumberCV",
|
|
10
15
|
"TorsionCV",
|
|
11
16
|
"RadiusOfGyrationCV",
|
|
12
17
|
"IndexSelector",
|
|
13
18
|
"SMILESSelector",
|
|
14
19
|
"SMARTSSelector",
|
|
20
|
+
"VirtualAtom",
|
|
15
21
|
"MetaDynamicsModel",
|
|
16
|
-
"
|
|
22
|
+
"MetadBias",
|
|
17
23
|
"MetaDynamicsConfig",
|
|
24
|
+
"OPESModel",
|
|
25
|
+
"OPESBias",
|
|
26
|
+
"OPESConfig",
|
|
27
|
+
"RestraintBias",
|
|
28
|
+
"UpperWallBias",
|
|
29
|
+
"LowerWallBias",
|
|
30
|
+
"sum_hills",
|
|
31
|
+
"read_colvar",
|
|
32
|
+
"plot_cv_time_series",
|
|
18
33
|
]
|
hillclimber/actions.py
CHANGED
|
@@ -2,12 +2,38 @@ import dataclasses
|
|
|
2
2
|
|
|
3
3
|
import ase
|
|
4
4
|
|
|
5
|
-
from hillclimber.interfaces import CollectiveVariable
|
|
5
|
+
from hillclimber.interfaces import CollectiveVariable, PlumedGenerator
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
@dataclasses.dataclass
|
|
9
|
-
class
|
|
10
|
-
"""
|
|
9
|
+
class PrintAction(PlumedGenerator):
|
|
10
|
+
"""PLUMED PRINT action for outputting collective variables.
|
|
11
|
+
|
|
12
|
+
This action prints the values of collective variables to a file during
|
|
13
|
+
the simulation. Multiple CVs can be printed to the same file.
|
|
14
|
+
|
|
15
|
+
Parameters
|
|
16
|
+
----------
|
|
17
|
+
cvs : list[CollectiveVariable]
|
|
18
|
+
List of collective variables to print.
|
|
19
|
+
stride : int, optional
|
|
20
|
+
Print every N steps, by default 1.
|
|
21
|
+
file : str, optional
|
|
22
|
+
Output file name, by default "COLVAR".
|
|
23
|
+
|
|
24
|
+
Examples
|
|
25
|
+
--------
|
|
26
|
+
>>> import hillclimber as hc
|
|
27
|
+
>>> print_action = hc.PrintAction(
|
|
28
|
+
... cvs=[cv1, cv2, cv3],
|
|
29
|
+
... stride=100,
|
|
30
|
+
... file="COLVAR"
|
|
31
|
+
... )
|
|
32
|
+
|
|
33
|
+
Resources
|
|
34
|
+
---------
|
|
35
|
+
- https://www.plumed.org/doc-master/user-doc/html/PRINT/
|
|
36
|
+
"""
|
|
11
37
|
|
|
12
38
|
cvs: list[CollectiveVariable]
|
|
13
39
|
stride: int = 1
|