@@ -48,7 +48,7 @@ def ork_extractor(bs, filepath, output_folder, ork):
4848 def _safe_search (func , default_ret , * args , ** kwargs ):
4949 try :
5050 return func (* args , ** kwargs )
51- except Exception as e :
51+ except Exception as e : # pylint: disable=broad-exception-caught
5252 logger .error ("Error extracting %s: %s" , func .__name__ , e , exc_info = True )
5353 return default_ret
5454
@@ -71,7 +71,10 @@ def _safe_search(func, default_ret, *args, **kwargs):
7171 rocket_data = _safe_search (
7272 search_rocket ,
7373 ({"center_of_mass_without_propellant" : 0 , "mass" : 0 , "radius" : 0 }, 0 ),
74- bs , datapoints , data_labels , burnout_position
74+ bs ,
75+ datapoints ,
76+ data_labels ,
77+ burnout_position ,
7578 )
7679 rocket , motor_position = rocket_data
7780 motors ["position" ] = motor_position
@@ -88,7 +91,11 @@ def _safe_search(func, default_ret, *args, **kwargs):
8891 elements = _safe_search (
8992 process_elements_position ,
9093 {},
91- ork .getRocket (), {}, center_of_dry_mass , rocket_mass , top_position = 0
94+ ork .getRocket (),
95+ {},
96+ center_of_dry_mass ,
97+ rocket_mass ,
98+ top_position = 0 ,
9299 )
93100 logger .info ("The elements are:\n %s" , _dict_to_string (elements , indent = 23 ))
94101
@@ -101,7 +108,11 @@ def _safe_search(func, default_ret, *args, **kwargs):
101108 stored_results = _safe_search (
102109 search_stored_results ,
103110 {},
104- bs , datapoints , data_labels , time_vector , burnout_position
111+ bs ,
112+ datapoints ,
113+ data_labels ,
114+ time_vector ,
115+ burnout_position ,
105116 )
106117
107118 # save everything to a dictionary
0 commit comments