From f19ff92b5e871f314d0ebe06fe20d3d4c36aec02 Mon Sep 17 00:00:00 2001 From: Andrey Fedorov Date: Mon, 7 Oct 2024 15:34:41 -0400 Subject: [PATCH] BUG: clean up after conflict resolution --- idc_index/index.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/idc_index/index.py b/idc_index/index.py index 0d113bc1..6390f50d 100644 --- a/idc_index/index.py +++ b/idc_index/index.py @@ -153,7 +153,7 @@ def _safe_filter_by_selection( patientId, studyInstanceUID, seriesInstanceUID, - sopInstanceUID=None, + sopInstanceUID, crdc_series_uuid, ): if collection_id is not None: @@ -205,10 +205,10 @@ def _safe_filter_by_selection( if sopInstanceUID is not None: result_df = IDCClient._filter_by_dicom_instance_uid( - result_df, sopInstanceUID + df_index, sopInstanceUID ) return result_df - + if seriesInstanceUID is not None: result_df = IDCClient._filter_by_dicom_series_uid( df_index, seriesInstanceUID @@ -1512,6 +1512,7 @@ def citations_from_selection( patientId=patientId, studyInstanceUID=studyInstanceUID, seriesInstanceUID=seriesInstanceUID, + sopInstanceUID=None, crdc_series_uuid=None, )