@@ -39,43 +39,43 @@ class BaseCalculation(FileNameMixin):
39
39
40
40
Parameters
41
41
----------
42
- calc_name : str
42
+ calc_name
43
43
Name of calculation being run, used for name of logger. Default is "base".
44
- struct : MaybeSequence[Atoms] | None
44
+ struct
45
45
ASE Atoms structure(s) to simulate. Required if `struct_path` is None.
46
46
Default is None.
47
- struct_path : PathLike | None
47
+ struct_path
48
48
Path of structure to simulate. Required if `struct` is None.
49
49
Default is None.
50
- arch : Architectures
50
+ arch
51
51
MLIP architecture to use for calculations. Default is "mace_mp".
52
- device : Devices
52
+ device
53
53
Device to run model on. Default is "cpu".
54
- model_path : PathLike | None
54
+ model_path
55
55
Path to MLIP model. Default is `None`.
56
- read_kwargs : ASEReadArgs
56
+ read_kwargs
57
57
Keyword arguments to pass to ase.io.read. Default is {}.
58
- sequence_allowed : bool
58
+ sequence_allowed
59
59
Whether a sequence of Atoms objects is allowed. Default is True.
60
- calc_kwargs : dict[str, Any] | None
60
+ calc_kwargs
61
61
Keyword arguments to pass to the selected calculator. Default is {}.
62
- set_calc : bool | None
62
+ set_calc
63
63
Whether to set (new) calculators for structures. Default is None.
64
- attach_logger : bool | None
64
+ attach_logger
65
65
Whether to attach a logger. Default is True if "filename" is passed in
66
66
log_kwargs, else False.
67
- log_kwargs : dict[str, Any] | None
67
+ log_kwargs
68
68
Keyword arguments to pass to `config_logger`. Default is {}.
69
- track_carbon : bool | None
69
+ track_carbon
70
70
Whether to track carbon emissions of calculation. Requires attach_logger.
71
71
Default is True if attach_logger is True, else False.
72
- tracker_kwargs : dict[str, Any] | None
72
+ tracker_kwargs
73
73
Keyword arguments to pass to `config_tracker`. Default is {}.
74
- file_prefix : PathLike | None
74
+ file_prefix
75
75
Prefix for output filenames. Default is None.
76
- additional_prefix : str | None
76
+ additional_prefix
77
77
Component to add to default file_prefix (joined by hyphens). Default is None.
78
- param_prefix : str | None
78
+ param_prefix
79
79
Additional parameters to add to default file_prefix. Default is None.
80
80
81
81
Attributes
@@ -112,44 +112,44 @@ def __init__(
112
112
113
113
Parameters
114
114
----------
115
- calc_name : str
115
+ calc_name
116
116
Name of calculation being run, used for name of logger. Default is "base".
117
- struct : MaybeSequence[Atoms] | None
117
+ struct
118
118
ASE Atoms structure(s) to simulate. Required if `struct_path` is None.
119
119
Default is None.
120
- struct_path : PathLike | None
120
+ struct_path
121
121
Path of structure to simulate. Required if `struct` is None. Default is
122
122
None.
123
- arch : Architectures
123
+ arch
124
124
MLIP architecture to use for calculations. Default is "mace_mp".
125
- device : Devices
125
+ device
126
126
Device to run MLIP model on. Default is "cpu".
127
- model_path : PathLike | None
127
+ model_path
128
128
Path to MLIP model. Default is `None`.
129
- read_kwargs : ASEReadArgs | None
129
+ read_kwargs
130
130
Keyword arguments to pass to ase.io.read. Default is {}.
131
- sequence_allowed : bool
131
+ sequence_allowed
132
132
Whether a sequence of Atoms objects is allowed. Default is True.
133
- calc_kwargs : dict[str, Any] | None
133
+ calc_kwargs
134
134
Keyword arguments to pass to the selected calculator. Default is {}.
135
- set_calc : bool | None
135
+ set_calc
136
136
Whether to set (new) calculators for structures. Default is None.
137
- attach_logger : bool | None
137
+ attach_logger
138
138
Whether to attach a logger. Default is True if "filename" is passed in
139
139
log_kwargs, else False.
140
- log_kwargs : dict[str, Any] | None
140
+ log_kwargs
141
141
Keyword arguments to pass to `config_logger`. Default is {}.
142
- track_carbon : bool | None
142
+ track_carbon
143
143
Whether to track carbon emissions of calculation. Requires attach_logger.
144
144
Default is True if attach_logger is True, else False.
145
- tracker_kwargs : dict[str, Any] | None
145
+ tracker_kwargs
146
146
Keyword arguments to pass to `config_tracker`. Default is {}.
147
- file_prefix : PathLike | None
147
+ file_prefix
148
148
Prefix for output filenames. Default is None.
149
- additional_prefix : str | None
149
+ additional_prefix
150
150
Component to add to default file_prefix (joined by hyphens). Default is
151
151
None.
152
- param_prefix : str | None
152
+ param_prefix
153
153
Additional parameters to add to default file_prefix. Default is None.
154
154
"""
155
155
read_kwargs , calc_kwargs , log_kwargs , tracker_kwargs = none_to_dict (
@@ -232,7 +232,7 @@ def _set_info_units(
232
232
233
233
Parameters
234
234
----------
235
- keys : Sequence
235
+ keys
236
236
Keys for which to add units to structure info. Default is
237
237
("energy", "forces", "stress").
238
238
"""
0 commit comments