File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
import numpy as np
2
2
from pymatgen .analysis .magnetism import CollinearMagneticStructureAnalyzer
3
3
4
+ from atomate .utils .utils import get_logger
5
+
6
+ logger = get_logger (__name__ )
7
+
4
8
5
9
def procure_response_dict (
6
10
struct_final ,
@@ -11,6 +15,7 @@ def procure_response_dict(
11
15
response_dict ,
12
16
perturb_dict ,
13
17
rkey ,
18
+ # keys,
14
19
ldaul_vals ,
15
20
analyzer_gs ,
16
21
calcs_skipped ,
@@ -23,10 +28,13 @@ def procure_response_dict(
23
28
# perform magnetic ordering analysis
24
29
analyzer_output = CollinearMagneticStructureAnalyzer (struct_final , threshold = 0.61 )
25
30
magnet_order = analyzer_output .ordering .value
31
+ # if rkey == keys[0]: # store ground state ordering
32
+ # magnet_order_gs = magnet_order
26
33
27
34
# check if ordering matches ground state configuration
28
35
if analyzer_gs :
29
36
if not analyzer_gs .matches_ordering (struct_final ):
37
+ # use_calc = False
30
38
calcs_skipped .append (
31
39
{
32
40
"ICHARG" : incar_dict .get ("ICHARG" , 0 ),
@@ -164,6 +172,9 @@ def obtain_response_matrices(
164
172
165
173
v = response_dict [keys [ll ]][f"site{ j } " ][v_key ][idx ]
166
174
n = response_dict [keys [ll ]][f"site{ i } " ][n_key ][idx ]
175
+ # order = response_dict[keys[ll]]["magnetic order"][l]
176
+
177
+ # if order == magnet_order_gs:
167
178
168
179
isolated_response = v != 0.0
169
180
Original file line number Diff line number Diff line change @@ -1034,9 +1034,10 @@ def run_task(self, fw_spec):
1034
1034
response_dict ,
1035
1035
perturb_dict ,
1036
1036
rkey ,
1037
- keys ,
1037
+ # keys,
1038
1038
ldaul_vals ,
1039
1039
analyzer_gs ,
1040
+ calcs_skipped ,
1040
1041
)
1041
1042
1042
1043
for j in range (num_perturb_sites ):
You can’t perform that action at this time.
0 commit comments