How jackjamesdawson/fatigue-cycle-counting works
This is an early-stage C++ fatigue-cycle-counting library with a typed Python interface. The current user-to-result path exposes reversal extraction: Python calls the native binding, which validates and converts the input, invokes the C++ preprocessing algorithm, and returns a NumPy array. The README also documents counting methods as planned scope; they are not represented as implemented runtime components. The graph reflects the sampled sources and README, so it omits unverified links and unsampled implementation details.
Main entry points: _core.cpp Native module · _reversals_binding.cpp Reversal binding · __init__.py Python package API · binding.cpp Preprocessing registration
Components 13
Python interface
- Python package API
python/fatigue_cycle_counting/__init__.py - Preprocessing API
python/fatigue_cycle_counting/preprocessing/__init__.py
Native runtime
- Native module
src/bindings/python/_core.cpp - Preprocessing registration
src/bindings/python/preprocessing/binding.cpp - Reversal binding
src/bindings/python/preprocessing/_reversals_binding.cpp - Reversal extraction
src/preprocessing/reversals.cpp - NumPy output conversion
src/bindings/python/detail/numpy.hpp - Reversal API declaration
include/fatigue_cycle_counting/preprocessing/reversals.hpp - Binding declarations
src/bindings/python/preprocessing/binding.hpp - Reversal binding declaration
src/bindings/python/preprocessing/_reversals_binding.hpp - Version provider
src/version.cpp
Planned capabilities
- Planned counting methods
README.md
Other components
- Engineer
Connections 12
- Engineer → Python package API: uses
README.md - Python package API → Preprocessing API: exports
python/fatigue_cycle_counting/__init__.py - Python package API → Native module: imports version
python/fatigue_cycle_counting/__init__.py - Preprocessing API → Reversal binding: exposes native function
python/fatigue_cycle_counting/preprocessing/__init__.py - Native module → Preprocessing registration: registers
src/bindings/python/_core.cpp - Preprocessing registration → Reversal binding: registers
src/bindings/python/preprocessing/binding.cpp - Reversal binding → Reversal extraction: calls
src/bindings/python/preprocessing/_reversals_binding.cpp - Reversal binding → NumPy output conversion: converts result
src/bindings/python/preprocessing/_reversals_binding.cpp - Reversal extraction → Reversal API declaration: implements
src/preprocessing/reversals.cpp - Native module → Binding declarations: includes
src/bindings/python/_core.cpp - Preprocessing registration → Reversal binding declaration: includes
src/bindings/python/preprocessing/binding.cpp - Native module → Version provider: reads version
src/bindings/python/_core.cpp