From 43a3cf1de564844602a6964634f0e1877660baa3 Mon Sep 17 00:00:00 2001 From: Arthur Zalevsky Date: Thu, 18 Jul 2024 07:53:08 -0700 Subject: [PATCH] Use class-based check for crosslining-ms data --- ihm_validation/mmcif_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__):