Skip to content

Commit

Permalink
when loading energies from file cast key string integers into true in…
Browse files Browse the repository at this point in the history
…tegers
  • Loading branch information
mjohnson541 committed Jan 9, 2025
1 parent fd16a7e commit 73db5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynta/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ def run_task(self, fw_spec):
configs_of_concern_by_admol[admol_name] = [(Molecule().from_adjacency_list(k[0],check_consistency=False),k[1],k[2],k[3]) for k in json.load(f)]
Ncoad_energy_path = os.path.join(path,"Iterations",str(iter),"Ncoad_energy_"+admol_name+".json")
with open(Ncoad_energy_path,'r') as f:
Ncoad_energy_by_admol[admol_name] = json.load(f)
Ncoad_energy_by_admol[admol_name] = {int(k):v for k,v in json.load(f).items()}

#load tree
nodes = read_nodes(os.path.join(path,"Iterations",str(iter),"regressor.json"))
Expand Down

0 comments on commit 73db5c9

Please sign in to comment.