Skip to content

BlueSky using BADA #640

@tinpusher

Description

@tinpusher

I had a BADA performance model usage problem. I get the Successfully loaded, but was not convinced that it was using BADA.
Found in Traffic.py a section of code related to BADA, after uncommenting, it still failed, but it gave a clue.
The issue is that line 34

  print('Using BADA Performance model')
  from .performance.bada.perfbada import PerfBADA as Perf,

but, the file perfbada (bada directory), the import is just BADA.
so the correction is (at least for me ):

from .performance.bada.perfbada import BADA as Perf

At least it worked for me, the boot output after the fix:

Successfully loaded OpenAP performance model
Successfully loaded BADA performance model
Successfully loaded legacy performance model

Using BADA Performance model

Found BADA version 3.16 (release date May 24 2022)
1832 aircraft entries loaded
264 unique aircraft coefficient sets loaded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions