@@ -482,8 +482,8 @@ function _data_collections($single = null)
482482 dc.phaseplate,
483483 ses.beamlinename as bl,
484484 dc.blsubsampleid,
485- d. numberofpixelsx as detectornumberofpixelsx,
486- d. numberofpixelsy as detectornumberofpixelsy,
485+ IF(dc.detectorMode = 'ROI', d.numberofroipixelsx, d. numberofpixelsx) as detectornumberofpixelsx,
486+ IF(dc.detectorMode = 'ROI', d.numberofroipixelsy, d. numberofpixelsy) as detectornumberofpixelsy,
487487 ses.archived,
488488 ses.purgedProcessedData,
489489 IFNULL(dc.rotationaxis, 'Omega') as rotationaxis,
@@ -625,8 +625,8 @@ function _data_collections($single = null)
625625 max(dc.phaseplate) as phaseplate,
626626 max(ses.beamlinename) as bl,
627627 max(dc.blsubsampleid) as blsubsampleid,
628- max(d.numberofpixelsx) as detectornumberofpixelsx,
629- max(d.numberofpixelsy) as detectornumberofpixelsy,
628+ IF(dc.detectorMode = 'ROI', max(d.numberofroipixelsx), max(d. numberofpixelsx) ) as detectornumberofpixelsx,
629+ IF(dc.detectorMode = 'ROI', max(d.numberofroipixelsy), max(d. numberofpixelsy) ) as detectornumberofpixelsy,
630630 max(ses.archived) as archived,
631631 max(ses.purgedProcessedData) as purgedProcessedData,
632632 IFNULL(max(dc.rotationaxis), 'Omega') as rotationaxis,
0 commit comments