@@ -302,20 +302,13 @@ def build_explorer_context(is_dicofdic, source, versions, filters, fields, order
302302 )
303303 custom_facets = None
304304
305- disk_size = True
306- if disk_size :
307- custom_facets = {
308- 'instance_size' : 'sum(instance_size)' ,
309- 'patient_per_collec' :{'type' : 'terms' , 'field' : 'collection_id' , 'limit' : - 1 , 'missing' : True ,'facet' : {'unique_count' : 'unique(PatientID)' }},
310- 'study_per_collec' : {'type' : 'terms' , 'field' : 'collection_id' , 'limit' : - 1 , 'missing' : True ,
311- 'facet' : {'unique_count' : 'unique(StudyInstanceUID)' }},
312- 'series_per_collec2' : {'type' : 'terms' , 'field' : 'collection_id' , 'limit' : - 1 , 'missing' : True ,
313- 'facet' : {'unique_count' : 'unique(SeriesInstanceUID)' }},
314- 'size_per_collec2' : {'type' : 'terms' , 'field' : 'collection_id' , 'limit' : 3000 , 'facet' : {'instance_size' : 'sum(instance_size)' }},
315- 'size_per_pat' : {'type' : 'terms' , 'field' : 'PatientID' , 'limit' : 3000 , 'facet' : {'instance_size' : 'sum(instance_size)' }}
316-
317-
318- }
305+ custom_facets = {
306+ 'patient_per_collec' :{'type' : 'terms' , 'field' : 'collection_id' , 'limit' : - 1 , 'missing' : True ,'facet' : {'unique_count' : 'unique(PatientID)' }},
307+ 'study_per_collec' : {'type' : 'terms' , 'field' : 'collection_id' , 'limit' : - 1 , 'missing' : True ,
308+ 'facet' : {'unique_count' : 'unique(StudyInstanceUID)' }},
309+ 'series_per_collec2' : {'type' : 'terms' , 'field' : 'collection_id' , 'limit' : - 1 , 'missing' : True ,
310+ 'facet' : {'unique_count' : 'unique(SeriesInstanceUID)' }}
311+ }
319312
320313 start = time .time ()
321314 source_metadata = get_collex_metadata (
0 commit comments