Skip to content

Commit 9fb5347

Browse files
committed
fix tree loading
1 parent 8eb2933 commit 9fb5347

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pynta/tasks.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ def run_task(self, fw_spec):
12351235

12361236

12371237
nodes_file = os.path.join(os.path.split(pynta.models.__file__)[0],"finetuned_to_dft_delta_model.json")
1238-
nodes = read_nodes(nodes_file)
1238+
nodes_isolated = read_nodes(nodes_file)
12391239
def bond_decomposition_adsorbate(mol):
12401240
pairs = []
12411241
bonds = mol.get_all_edges()
@@ -1254,7 +1254,7 @@ def bond_decomposition_adsorbate(mol):
12541254

12551255
sidt_finetuned_to_dft = MultiEvalSubgraphIsomorphicDecisionTreeRegressor(
12561256
bond_decomposition_adsorbate,
1257-
nodes=nodes,
1257+
nodes=nodes_isolated,
12581258
root_group = Group().from_adjacency_list("""1 * R u0 px cx {2,[vdW,R,S,D,T,Q]}
12591259
2 * Rx u0 px cx {1,[vdW,R,S,D,T,Q]}"""),
12601260
r=[ATOMTYPES[x] for x in ["C", "O", "H", "N", "X"]],
@@ -1266,10 +1266,12 @@ def bond_decomposition_adsorbate(mol):
12661266

12671267
from pynta.coveragedependence import adsorbate_interaction_decomposition
12681268
nodes_file = os.path.join(os.path.split(pynta.models.__file__)[0],"finetuned_to_dft_delta_model.json")
1269-
nodes = read_nodes(nodes_file)
1270-
1269+
nodes_covdep = read_nodes(nodes_file)
1270+
r_site = ["","ontop","bridge","hcp","fcc"]
1271+
1272+
r_atoms = ["C","O","N","H","X"]
12711273
sidt_finetuned_to_covdep = MultiEvalSubgraphIsomorphicDecisionTreeRegressor([adsorbate_interaction_decomposition],
1272-
nodes=pairnodes,
1274+
nodes=nodes_covdep,
12731275
r=[ATOMTYPES[x] for x in r_atoms],
12741276
r_bonds=[1,2,3,4,0.05],
12751277
r_un=[0],

0 commit comments

Comments
 (0)