CoFFE Analyzer
This package supports the CoFFE analysis presented in ARP4761A/ED-135.
CoFFE stands for Combinational Functional Failures Effects. One method of performing this analysis is through a table. Each row of that table represents a combination of failures leading to a certain result.
This package analyze that table and returns a simplified boolean expression for each relevant CoFFE result (Failure Condition), that helps to develop its related preliminary Fault Tree Analysis (FTA).
Installation
For installing CoFFE Analyzer, just run this command in your shell:
pip install coffe-analyzer
Usage example
Section Q.4.4.1 of ARP4761A shows an example of a CoFFE analysis that assess the loss of ability to decelerate with crew aware. Combination of failures from four different systems are identified (Wheel Brake, Ground Spoiler, Thrust Reverser, and Flap), and three failure states are contemplated for each of them (Total Loss - F, Partal Loss - D, and Nominal Operation - O). The results after combining those failure states are: High-speed overrun, Low-speed overrun, and No overrun. Only High-speed overrun is considered relevant as Failure Condition.
Last paragraph of Section Q.4.4.1 states the solution:
Through the CoFFE analysis it can be concluded that “the total loss of wheel brake function in addition to the partial (or total) loss of any ground spoiler or thrust reverser or flap functions” might result in high-speed overruns.
CSV as source of data
Considering that Table Q.4.6 is stored in a csv file, the following code is executed:
>>> from coffeanalyzer import CoffeInstance
>>> path_csv = 'path/to/csv/file.csv'
>>> # The CSV wil contain one column per each analyzed system indicating the failed states.
>>> # The last column is reserved for the result of the combinated failed states:
>>> # F;F;F;F;High-speed overrun
>>> # F;O;O;O;Low-speed overrun
>>> # ...
>>> coffe = CoffeInstance(
... ignored_states=['O'],
... ignored_results=['No overrun', 'Low-speed overrun'],
... custom_headers=['WBrake', 'GrndSpoiler', 'ThrustRev', 'Flap']
... )
>>> coffe_results = coffe.get_simplified_expression_from_csv(path_csv)
>>> print(coffe_results)
WBrake_F AND (Flap_D OR Flap_F OR GrndSpoiler_D OR GrndSpoiler_F OR ThrustRev_D OR ThrustRev_F)
Release History
- 1.0.0
- First release
Roadmap
- Capability to obtain the boolean expression from a csv file.
- Compatibility with python4capella.
Contributing
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork it (https://github.com/samuelglorente/coffe_analyzer/fork)
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -am 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Create a new Pull Request
License
Distributed under the GPL-3.0 license. See LICENSE for more information.
Contact
Samuel García Lorente
Acknowledgments
Metadata
Release files for coffe-analyzer 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| coffe_analyzer-1.0.2.tar.gz | 34.8 kB | Without provenance | Details for coffe_analyzer-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| coffe_analyzer-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for coffe_analyzer-1.0.2-py3-none-any.whl |
Total release size: 66.0 kB
Release files / coffe_analyzer-1.0.2.tar.gz
| Download URL | coffe_analyzer-1.0.2.tar.gz |
|---|---|
| Size | 34.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a2d889d768f10b1339d32ea6f5674cb7d2a433dbbe1a8a43e9ff194446e5789
|
|
BLAKE2b-256 checksum How to use checksums |
2de9f40810eb5a9f635d5da7b7e25dcb39730d473d4b3c6c36581d698efb5e5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.1
|
Release files / coffe_analyzer-1.0.2-py3-none-any.whl
| Download URL | coffe_analyzer-1.0.2-py3-none-any.whl |
|---|---|
| Size | 31.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b15aced9d383cdfe859ab3c45bed387c967b3982a3721e5841d8abbef1c40c9b
|
|
BLAKE2b-256 checksum How to use checksums |
3ec34850eda9f3df17a2dea6402a2266eed15539fefd8ad6817f7c7a4059e345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.1
|
Security for coffe-analyzer 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.