@@ -374,9 +374,7 @@ def _handleAxisOrderChecked(checked):
374374
375375 self .outputAxisOrderEdit .editingFinished .connect (_handleNewAxisOrder )
376376 self .outputAxisOrderEdit .textChanged .connect (partial (self ._updateAxisOrderColor , True ))
377- self .outputAxisOrderEdit .setValidator (
378- DataExportOptionsDlg ._AxisOrderValidator (self , self ._opDataExport .ConvertedImage )
379- )
377+ self .outputAxisOrderEdit .setValidator (DataExportOptionsDlg ._AxisOrderValidator (self , self ._opDataExport .Input ))
380378 self .outputAxisOrderEdit .installEventFilter (DataExportOptionsDlg ._AxisOrderEventFilter (self ))
381379 self .axisOrderCheckbox .toggled .connect (_handleAxisOrderChecked )
382380
@@ -410,7 +408,8 @@ def __init__(self, parent, inputSlot):
410408
411409 def validate (self , userAxes , pos ):
412410 taggedShape = self ._inputSlot .meta .getTaggedShape ()
413- inputAxes = list (taggedShape .keys ())
411+ originalAxes = self ._inputSlot .meta .getOriginalAxisKeys ()
412+ inputAxes = list (originalAxes )
414413 inputSet = set (inputAxes )
415414 userSet = set (str (userAxes ))
416415
@@ -425,7 +424,7 @@ def validate(self, userAxes, pos):
425424 # If missing non-singleton axes, maybe intermediate entry
426425 # (It's okay to omit singleton axes)
427426 for key in inputSet - userSet :
428- if taggedShape [ key ] != 1 :
427+ if taggedShape . get ( key , 1 ) != 1 :
429428 return (QValidator .Intermediate , userAxes , pos )
430429
431430 return (QValidator .Acceptable , userAxes , pos )
0 commit comments