How rafatahmed/flahax works
FlahaX is a standalone Python plant-nutrient chemistry engine. Its main workflow accepts water analysis and crop targets, formulates fertilizer doses, evaluates solution chemistry and pH, then produces reviewable delivery plans rather than controlling equipment. Separate capabilities cover conductivity screening, stock and injector planning, and traceable material and input records. The graph uses README statements and SOURCE INDEX references for relationships; some CLI wiring and unsampled implementation details remain unverified.
Main entry points: fertilizer_workflow.py Fertilizer Workflow · aqueous_model.py Aqueous Model · product_conversion.py Product Conversion · equilibrium_delivery.py Equilibrium Delivery
Components 22
Formulation
- Salt Formulation
src/flahax/engine.py - Formula Validation
src/flahax/composition.py
Solution Chemistry
- Measured Water
src/flahax/measured_water.py - Aqueous Model
src/flahax/aqueous_model.py - Fertilizer Equilibrium
src/flahax/fertilizer_equilibrium.py - Mixed Equilibrium
src/flahax/mixed_equilibrium.py - Calculated pH
src/flahax/calculated_ph.py - Product Conversion
src/flahax/product_conversion.py - Irrigation EC
src/flahax/irrigation_ec.py - EC Screening
src/flahax/conductivity.py
Planning and Delivery
- Fertilizer Workflow
src/flahax/fertilizer_workflow.py - Acid Selection
src/flahax/acid_selection.py - pH Planning
src/flahax/ph_planning.py - Equilibrium Delivery
src/flahax/equilibrium_delivery.py - Stock Planning
src/flahax/stock_planning.py - Pump Sizing
src/flahax/pump_planning.py - Unit Quantities
src/flahax/delivery_quantities.py
Inputs and Provenance
- Delivery Contracts
src/flahax/delivery_contracts.py - Material Catalogue
src/flahax/materials.py
User Interface
- Command Line
src/flahax/planning_cli.py - Python API
src/flahax/__init__.py
Other components
- Grower or Developer
Connections 30
- Grower or Developer → Python API: calls
README.md - Grower or Developer → Command Line: runs
README.md - Python API → Salt Formulation: exposes
src/flahax/__init__.py - Command Line → Fertilizer Workflow: plans
- Fertilizer Workflow → Salt Formulation: formulates
src/flahax/fertilizer_workflow.py - Fertilizer Workflow → Measured Water: balances
src/flahax/fertilizer_workflow.py - Fertilizer Workflow → Calculated pH: calculates pH
src/flahax/fertilizer_workflow.py - Fertilizer Workflow → Product Conversion: converts doses
src/flahax/fertilizer_workflow.py - Fertilizer Workflow → Acid Selection: selects acid
src/flahax/fertilizer_workflow.py - Fertilizer Workflow → pH Planning: plans pH
src/flahax/fertilizer_workflow.py - Fertilizer Workflow → Stock Planning: plans stocks
src/flahax/fertilizer_workflow.py - Salt Formulation → Formula Validation: validates formula
src/flahax/engine.py - Measured Water → Aqueous Model: speciates
src/flahax/measured_water.py - Calculated pH → Aqueous Model: solves
src/flahax/calculated_ph.py - Product Conversion → Material Catalogue: resolves profiles
src/flahax/product_conversion.py - Product Conversion → Aqueous Model: builds totals
src/flahax/product_conversion.py - Mixed Equilibrium → Aqueous Model: uses solver
src/flahax/mixed_equilibrium.py - Fertilizer Equilibrium → Mixed Equilibrium: supports model
src/flahax/fertilizer_equilibrium.py - Acid Selection → Aqueous Model: evaluates dose
src/flahax/acid_selection.py - Equilibrium Delivery → Product Conversion: converts recipe
src/flahax/equilibrium_delivery.py - Equilibrium Delivery → Unit Quantities: uses units
src/flahax/equilibrium_delivery.py - Equilibrium Delivery → Delivery Contracts: validates records
src/flahax/equilibrium_delivery.py - Stock Planning → Unit Quantities: uses quantities
src/flahax/stock_planning.py - Fertilizer Workflow → Equilibrium Delivery: composes plan
src/flahax/fertilizer_workflow.py - Irrigation EC → Aqueous Model: uses speciation
src/flahax/irrigation_ec.py - Irrigation EC → Product Conversion: converts doses
src/flahax/irrigation_ec.py - EC Screening → Stock Planning: screens products
src/flahax/conductivity.py - EC Screening → Unit Quantities: uses units
src/flahax/conductivity.py - EC Screening → Pump Sizing: uses sizing
src/flahax/conductivity.py - Fertilizer Workflow → Delivery Contracts: validates inputs
src/flahax/fertilizer_workflow.py