File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ def test_ImageMath_inputs():
66 input_map = dict (
77 args = dict (
88 argstr = "%s" ,
9+ position = - 1 ,
910 ),
1011 copy_header = dict (
1112 usedefault = True ,
@@ -27,11 +28,11 @@ def test_ImageMath_inputs():
2728 argstr = "%s" ,
2829 extensions = None ,
2930 mandatory = True ,
30- position = - 2 ,
31+ position = - 3 ,
3132 ),
3233 op2 = dict (
3334 argstr = "%s" ,
34- position = - 1 ,
35+ position = - 2 ,
3536 ),
3637 operation = dict (
3738 argstr = "%s" ,
Original file line number Diff line number Diff line change @@ -208,7 +208,10 @@ def _operation_update(self):
208208 self .inputs .copy_header = False
209209
210210 def _copyheader_update (self ):
211- if self .inputs .copy_header and self ._no_copy_header_operation :
211+ if (
212+ self .inputs .copy_header
213+ and self .inputs .operation in self ._no_copy_header_operation
214+ ):
212215 warn (
213216 f"copy_header cannot be updated to True with { self .inputs .operation } as operation."
214217 )
You can’t perform that action at this time.
0 commit comments