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
3 changes: 3 additions & 0 deletions omtra/data/plinder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ def to_xace_mol(self, dense=False) -> MolXACE:
# very hacky bug fix here
if xace_dict[k] is None and k in ['fixed_atom_mask', 'fixed_edge_mask']:
continue
elif xace_dict[k] is None and k not in ['fixed_atom_mask', 'fixed_edge_mask']:
raise ValueError(f"{k} is None but not in ['fixed_atom_mask', 'fixed_edge_mask']")


if k == 'x':
xace_dict[k] = xace_dict[k].float()
Expand Down