diff --git a/ihm_validation/mmcif_io.py b/ihm_validation/mmcif_io.py index de3dc46f..ea1a556b 100644 --- a/ihm_validation/mmcif_io.py +++ b/ihm_validation/mmcif_io.py @@ -722,7 +722,7 @@ def get_dataset_details(self) -> dict: elif 'PDB' in str(i.__class__.__name__): acc1 = 'PDB ID: ' + acc dataset_comp['Details'].append(acc1) - elif 'CX' in str(i.__class__.__name__): + elif isinstance(i, ihm.dataset.CXMSDataset): acc1 = self.get_dataset_xl_info(i._id) dataset_comp['Details'].append(acc1) elif 'EMDB' in str(i.__class__.__name__):