Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openchem/data/graph_data_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(self,
return_max_len=True)
self.max_len = max_len
if target is not None:
target = np.asarray(target, dtype=np.float).T
target = np.asarray(target, dtype=float).T
clean_smiles = [clean_smiles[i] for i in clean_idx]
num_atoms = [num_atoms[i] for i in clean_idx]
self.clean_idx = clean_idx
Expand Down