@@ -368,15 +368,15 @@ def test_task_nostate_1(plugin):
368
368
# checking the results
369
369
results = nn .result ()
370
370
assert results .output .out == 5
371
- # checking the verbose option, either verbose= True, or verbose= "val",
371
+ # checking the return_inputs option, either is return_inputs is True, or "val",
372
372
# it should give values of inputs that corresponds to the specific element
373
- results_verb = nn .result (verbose = True )
374
- results_verb_val = nn .result (verbose = "val" )
373
+ results_verb = nn .result (return_inputs = True )
374
+ results_verb_val = nn .result (return_inputs = "val" )
375
375
assert results_verb [0 ] == results_verb_val [0 ] == {"NA.a" : 3 }
376
376
assert results_verb [1 ].output .out == results_verb_val [1 ].output .out == 5
377
- # checking the verbose option verbose ="ind"
377
+ # checking the return_inputs option return_inputs ="ind"
378
378
# it should give indices of inputs (instead of values) for each element
379
- results_verb_ind = nn .result (verbose = "ind" )
379
+ results_verb_ind = nn .result (return_inputs = "ind" )
380
380
assert results_verb_ind [0 ] == {"NA.a" : None }
381
381
assert results_verb_ind [1 ].output .out == 5
382
382
@@ -722,17 +722,17 @@ def test_task_state_1(plugin):
722
722
for i , res in enumerate (expected ):
723
723
assert results [i ].output .out == res [1 ]
724
724
725
- # checking the verbose option, either verbose= True, or verbose= "val",
725
+ # checking the return_inputs option, either return_inputs is True or "val",
726
726
# it should give values of inputs that corresponds to the specific element
727
- results_verb = nn .result (verbose = True )
728
- results_verb_val = nn .result (verbose = "val" )
727
+ results_verb = nn .result (return_inputs = True )
728
+ results_verb_val = nn .result (return_inputs = "val" )
729
729
for i , res in enumerate (expected ):
730
730
assert (results_verb [i ][0 ], results_verb [i ][1 ].output .out ) == res
731
731
assert (results_verb_val [i ][0 ], results_verb_val [i ][1 ].output .out ) == res
732
732
733
- # checking the verbose option verbose ="ind"
733
+ # checking the return_inputs option return_inputs ="ind"
734
734
# it should give indices of inputs (instead of values) for each element
735
- results_verb_ind = nn .result (verbose = "ind" )
735
+ results_verb_ind = nn .result (return_inputs = "ind" )
736
736
expected_ind = [({"NA.a" : 0 }, 5 ), ({"NA.a" : 1 }, 7 )]
737
737
for i , res in enumerate (expected_ind ):
738
738
assert (results_verb_ind [i ][0 ], results_verb_ind [i ][1 ].output .out ) == res
@@ -815,17 +815,17 @@ def test_task_state_2(
815
815
for i , res in enumerate (expected ):
816
816
assert results [i ].output .out == res [1 ]
817
817
818
- # checking the verbose option, either verbose= True, or verbose= "val",
818
+ # checking the return_inputs option, either return_inputs is True or "val",
819
819
# it should give values of inputs that corresponds to the specific element
820
- results_verb = nn .result (verbose = True )
821
- results_verb_val = nn .result (verbose = "val" )
820
+ results_verb = nn .result (return_inputs = True )
821
+ results_verb_val = nn .result (return_inputs = "val" )
822
822
for i , res in enumerate (expected ):
823
823
assert (results_verb [i ][0 ], results_verb [i ][1 ].output .out ) == res
824
824
assert (results_verb_val [i ][0 ], results_verb_val [i ][1 ].output .out ) == res
825
825
826
- # checking the verbose option verbose ="ind"
826
+ # checking the return_inputs option return_inputs ="ind"
827
827
# it should give indices of inputs (instead of values) for each element
828
- results_verb_ind = nn .result (verbose = "ind" )
828
+ results_verb_ind = nn .result (return_inputs = "ind" )
829
829
for i , res in enumerate (expected_ind ):
830
830
assert (results_verb_ind [i ][0 ], results_verb_ind [i ][1 ].output .out ) == res
831
831
@@ -1040,16 +1040,16 @@ def test_task_state_comb_1(plugin):
1040
1040
1041
1041
expected = [({"NA.a" : 3 }, 5 ), ({"NA.a" : 5 }, 7 )]
1042
1042
expected_ind = [({"NA.a" : 0 }, 5 ), ({"NA.a" : 1 }, 7 )]
1043
- # checking the verbose option, either verbose= True, or verbose= "val",
1043
+ # checking the return_inputs option, either return_inputs is True or "val",
1044
1044
# it should give values of inputs that corresponds to the specific element
1045
- results_verb = nn .result (verbose = True )
1046
- results_verb_val = nn .result (verbose = "val" )
1045
+ results_verb = nn .result (return_inputs = True )
1046
+ results_verb_val = nn .result (return_inputs = "val" )
1047
1047
for i , res in enumerate (expected ):
1048
1048
assert (results_verb [i ][0 ], results_verb [i ][1 ].output .out ) == res
1049
1049
assert (results_verb_val [i ][0 ], results_verb_val [i ][1 ].output .out ) == res
1050
- # checking the verbose option verbose ="ind"
1050
+ # checking the return_inputs option return_inputs ="ind"
1051
1051
# it should give indices of inputs (instead of values) for each element
1052
- results_verb_ind = nn .result (verbose = "ind" )
1052
+ results_verb_ind = nn .result (return_inputs = "ind" )
1053
1053
for i , res in enumerate (expected_ind ):
1054
1054
assert (results_verb_ind [i ][0 ], results_verb_ind [i ][1 ].output .out ) == res
1055
1055
@@ -1172,9 +1172,9 @@ def test_task_state_comb_2(
1172
1172
1173
1173
# checking the results
1174
1174
results = nn .result ()
1175
- # checking the verbose option, either verbose= True, or verbose= "val",
1175
+ # checking the return_inputs option, either return_inputs is True or "val",
1176
1176
# it should give values of inputs that corresponds to the specific element
1177
- results_verb = nn .result (verbose = True )
1177
+ results_verb = nn .result (return_inputs = True )
1178
1178
1179
1179
if nn .state .splitter_rpn_final :
1180
1180
for i , res in enumerate (expected ):
0 commit comments