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():
6
6
input_map = dict (
7
7
args = dict (
8
8
argstr = "%s" ,
9
+ position = - 1 ,
9
10
),
10
11
copy_header = dict (
11
12
usedefault = True ,
@@ -27,11 +28,11 @@ def test_ImageMath_inputs():
27
28
argstr = "%s" ,
28
29
extensions = None ,
29
30
mandatory = True ,
30
- position = - 2 ,
31
+ position = - 3 ,
31
32
),
32
33
op2 = dict (
33
34
argstr = "%s" ,
34
- position = - 1 ,
35
+ position = - 2 ,
35
36
),
36
37
operation = dict (
37
38
argstr = "%s" ,
Original file line number Diff line number Diff line change @@ -208,7 +208,10 @@ def _operation_update(self):
208
208
self .inputs .copy_header = False
209
209
210
210
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
+ ):
212
215
warn (
213
216
f"copy_header cannot be updated to True with { self .inputs .operation } as operation."
214
217
)
You can’t perform that action at this time.
0 commit comments