Skip to content

Commit

Permalink
Workaround for the entries with problematic crosslinking-ms dataset l…
Browse files Browse the repository at this point in the history
…ayout
  • Loading branch information
aozalevsky committed Sep 10, 2024
1 parent 48c8415 commit 412e6d0
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions ihm_validation/mmcif_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,24 @@ def get_dataset_details(self) -> dict:
acc1 = 'PDB ID: ' + acc
dataset_comp['Details'].append(acc1)
elif isinstance(i, ihm.dataset.CXMSDataset):
acc1 = self.get_dataset_xl_info(i._id)
dataset_comp['Details'].append(acc1)
details_ = ''

if acc != utility.NA:
details_ += f'ID: {acc}; '

try:
acc1 = self.get_dataset_xl_info(i._id)
except (ValueError, IndexError):
acc1 = utility.NA

if acc1 != utility.NA:
details_ += acc1

if acc == acc1 == utility.NA:
details_ = utility.NA

dataset_comp['Details'].append(details_)

elif 'EMDB' in str(i.__class__.__name__):
acc1 = 'EMDB ID: ' + acc
dataset_comp['Details'].append(acc1)
Expand Down

0 comments on commit 412e6d0

Please sign in to comment.