Skip to content

Commit

Permalink
fix data ndarray not list
Browse files Browse the repository at this point in the history
  • Loading branch information
emotionor committed Jun 24, 2024
1 parent 4feab87 commit 842a420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unimol_tools/unimol_tools/data/datareader.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def read_data(self, data=None, is_train=True, **params):
_ = data.pop('target', None)
data = pd.DataFrame(data).rename(columns={smiles_col: 'SMILES'})

elif isinstance(data, list):
elif isinstance(data, list) or isinstance(data, np.ndarray):
# load from smiles list
data = pd.DataFrame(data, columns=['SMILES'])
else:
Expand Down

0 comments on commit 842a420

Please sign in to comment.