diff --git a/openap/fuel.py b/openap/fuel.py index 6e83072..e770396 100644 --- a/openap/fuel.py +++ b/openap/fuel.py @@ -46,6 +46,8 @@ def __init__(self, ac, eng=None, **kwargs): if not hasattr(self, "WRAP"): self.WRAP = importlib.import_module("openap.kinematic").WRAP + self.use_synonym = kwargs.get("use_synonym", False) + self.ac = ac.lower() self.aircraft = prop.aircraft(ac, **kwargs) @@ -65,7 +67,7 @@ def fuel_params(self): """Obtain the fuel model parameters. Returns: - dict: drag polar model parameters. + dict: fuel model parameters. """ polar_files = glob.glob(dir_fuelmodel + "*.yml") ac_polar_available = [pathlib.Path(s).stem for s in polar_files] @@ -77,7 +79,7 @@ def fuel_params(self): if self.use_synonym and syno.shape[0] > 0: ac = syno.new.iloc[0] else: - raise ValueError(f"Drag polar for {self.ac} not avaiable.") + raise ValueError(f"Fuel model for {self.ac} not avaiable.") f = dir_fuelmodel + ac + ".yml" with open(f, "r") as file: