@@ -215,14 +215,11 @@ def data_ivim_fit_saved(datafile, algorithmFile):
215
215
kwargs = algorithm_dict .get ("options" , {})
216
216
tolerances = algorithm_dict .get ("tolerances" , {})
217
217
skiptime = False
218
- if first == True :
219
- if algorithm_dict .get ("fail_first_time" , {}) == True :
218
+ if first :
219
+ if algorithm_dict .get ("fail_first_time" , False ) :
220
220
skiptime = True
221
221
first = False
222
- if algorithm_dict .get ("requires_matlab" , False ) == True :
223
- requires_matlab = True
224
- else :
225
- requires_matlab = False
222
+ requires_matlab = algorithm_dict .get ("requires_matlab" , False )
226
223
yield name , bvals , data , algorithm , xfail , kwargs , tolerances , skiptime , requires_matlab
227
224
228
225
def algorithmlist (algorithmFile ):
@@ -235,10 +232,7 @@ def algorithmlist(algorithmFile):
235
232
algorithms = algorithm_information ["algorithms" ]
236
233
for algorithm in algorithms :
237
234
algorithm_dict = algorithm_information .get (algorithm , {})
238
- if algorithm_dict .get ("requires_matlab" , False ) == True :
239
- requires_matlab = True
240
- else :
241
- requires_matlab = False
235
+ requires_matlab = algorithm_dict .get ("requires_matlab" , False )
242
236
yield algorithm , requires_matlab
243
237
244
238
def bound_input (datafile ,algorithmFile ):
@@ -261,8 +255,5 @@ def bound_input(datafile,algorithmFile):
261
255
"strict" : algorithm_dict .get ("xfail_names" , {}).get (name , True )}
262
256
kwargs = algorithm_dict .get ("options" , {})
263
257
tolerances = algorithm_dict .get ("tolerances" , {})
264
- if algorithm_dict .get ("requires_matlab" , False ) == True :
265
- requires_matlab = True
266
- else :
267
- requires_matlab = False
258
+ requires_matlab = algorithm_dict .get ("requires_matlab" , False )
268
259
yield name , bvals , data , algorithm , xfail , kwargs , tolerances , requires_matlab
0 commit comments