@@ -127,7 +127,7 @@ def _get_best_estimate(
127127 query : EnergyAreaQuery ,
128128 target : str ,
129129 models : List [EnergyAreaModelWrapper ] | List [EnergyAreaModel ] = None ,
130- return_estimation_object : bool = False ,
130+ _return_estimation_object : bool = False ,
131131 _relaxed_component_name_selection : bool = False ,
132132) -> FloatEstimation | EnergyAreaModel :
133133 if models is None :
@@ -263,7 +263,7 @@ def _get_supported_models(relaxed_component_name_selection: bool):
263263
264264 clear_logs ()
265265
266- if return_estimation_object and estimation is not None :
266+ if _return_estimation_object and estimation is not None :
267267 return estimation
268268
269269 if estimation is not None and estimation .success :
@@ -285,7 +285,7 @@ def get_energy(
285285 action_name : str ,
286286 action_arguments : Dict [str , Any ],
287287 models : List [EnergyAreaModelWrapper ] = None ,
288- return_estimation_object : bool = False ,
288+ _return_estimation_object : bool = False ,
289289 _relaxed_component_name_selection : bool = False ,
290290) -> float | Estimation :
291291 """
@@ -301,7 +301,7 @@ def get_energy(
301301 action_name: The name of the action.
302302 action_arguments: The arguments of the action.
303303 models: The models to use.
304- return_estimation_object : Whether to return the estimation object instead of
304+ _return_estimation_object : Whether to return the estimation object instead of
305305 the energy value.
306306 _relaxed_component_name_selection: Whether to relax the component name
307307 selection. Relaxed selection ignores underscores in the component name.
@@ -317,7 +317,7 @@ def get_energy(
317317 query ,
318318 "energy" ,
319319 models ,
320- return_estimation_object ,
320+ _return_estimation_object ,
321321 _relaxed_component_name_selection ,
322322 )
323323
@@ -326,7 +326,7 @@ def get_area(
326326 component_name : str ,
327327 component_attributes : Dict [str , Any ],
328328 models : List [EnergyAreaModelWrapper ] = None ,
329- return_estimation_object : bool = False ,
329+ _return_estimation_object : bool = False ,
330330 _relaxed_component_name_selection : bool = False ,
331331) -> float | Estimation :
332332 """
@@ -339,7 +339,7 @@ def get_area(
339339 component_name: The name of the component.
340340 component_attributes: The attributes of the component.
341341 models: The models to use.
342- return_estimation_object : Whether to return the estimation object instead of
342+ _return_estimation_object : Whether to return the estimation object instead of
343343 the area value.
344344 _relaxed_component_name_selection: Whether to relax the component name
345345 selection. Relaxed selection ignores underscores in the component name.
@@ -353,7 +353,7 @@ def get_area(
353353 query ,
354354 "area" ,
355355 models ,
356- return_estimation_object ,
356+ _return_estimation_object ,
357357 _relaxed_component_name_selection ,
358358 )
359359
@@ -362,7 +362,7 @@ def get_leak_power(
362362 component_name : str ,
363363 component_attributes : Dict [str , Any ],
364364 models : List [EnergyAreaModelWrapper ] = None ,
365- return_estimation_object : bool = False ,
365+ _return_estimation_object : bool = False ,
366366 _relaxed_component_name_selection : bool = False ,
367367) -> float | Estimation :
368368 """
@@ -387,7 +387,7 @@ def get_leak_power(
387387 query ,
388388 "leak_power" ,
389389 models ,
390- return_estimation_object ,
390+ _return_estimation_object ,
391391 _relaxed_component_name_selection ,
392392 )
393393
@@ -397,7 +397,7 @@ def get_model(
397397 component_attributes : Dict [str , Any ],
398398 required_actions : List [str ] = (),
399399 models : List [EnergyAreaModelWrapper ] = None ,
400- return_estimation_object : bool = False ,
400+ _return_estimation_object : bool = False ,
401401 _relaxed_component_name_selection : bool = False ,
402402) -> EnergyAreaModelWrapper :
403403 """
@@ -411,7 +411,7 @@ def get_model(
411411 component_attributes: The attributes of the component.
412412 required_actions: The actions that are required for the component.
413413 models: The models to use.
414- return_estimation_object : Whether to return the estimation object instead of
414+ _return_estimation_object : Whether to return the estimation object instead of
415415 the model wrapper.
416416 _relaxed_component_name_selection: Whether to relax the component name
417417 selection. Relaxed selection ignores underscores in the component name.
@@ -423,4 +423,10 @@ def get_model(
423423 query = EnergyAreaQuery (
424424 component_name .lower (), component_attributes , None , None , required_actions
425425 )
426- return _get_best_estimate (query , "model" , models , return_estimation_object , _relaxed_component_name_selection )
426+ return _get_best_estimate (
427+ query ,
428+ "model" ,
429+ models ,
430+ _return_estimation_object ,
431+ _relaxed_component_name_selection ,
432+ )
0 commit comments