@@ -215,14 +215,11 @@ def data_ivim_fit_saved(datafile, algorithmFile):
215215 kwargs = algorithm_dict .get ("options" , {})
216216 tolerances = algorithm_dict .get ("tolerances" , {})
217217 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 ) :
220220 skiptime = True
221221 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 )
226223 yield name , bvals , data , algorithm , xfail , kwargs , tolerances , skiptime , requires_matlab
227224
228225def algorithmlist (algorithmFile ):
@@ -235,10 +232,7 @@ def algorithmlist(algorithmFile):
235232 algorithms = algorithm_information ["algorithms" ]
236233 for algorithm in algorithms :
237234 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 )
242236 yield algorithm , requires_matlab
243237
244238def bound_input (datafile ,algorithmFile ):
@@ -261,8 +255,5 @@ def bound_input(datafile,algorithmFile):
261255 "strict" : algorithm_dict .get ("xfail_names" , {}).get (name , True )}
262256 kwargs = algorithm_dict .get ("options" , {})
263257 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 )
268259 yield name , bvals , data , algorithm , xfail , kwargs , tolerances , requires_matlab
0 commit comments