- growth_model.py: load best_weight_model.pkl (hybrid_allometric_rf) with local chicken-weighing/ path first, external as fallback - aggregation.py: pass minor/major axis medians into predict_chicken_weight - run_daily_weighing.sh: run local chicken-weighing/weighing_inference.py - vendor chicken-weighing/ mirror (models, db, services, dashboard) - configs: stage boundaries 0-14 early / 15+ mid; floor_config extends simulation_experiment - services: fix paths to Project_FOLDER/.Codes - requirements: add scikit-learn, lightgbm, pytest - docs: sync README/RUN/API/ERD/CHANGELOG/CENTRAL_DASHBOARD to current code state
28 lines
968 B
Bash
Executable File
28 lines
968 B
Bash
Executable File
#!/bin/bash
|
|
# Master runner for daily chicken weighing (06:00 WIB)
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "$SCRIPT_DIR"
|
|
|
|
PYTHON="python3"
|
|
WEIGHING_INFERENCE_SCRIPT="$SCRIPT_DIR/chicken-weighing/weighing_inference.py"
|
|
if [ ! -f "$WEIGHING_INFERENCE_SCRIPT" ]; then
|
|
WEIGHING_INFERENCE_SCRIPT="/home/asus/Project_FOLDER/.Codes/chicken-weighing-sukawarna/weighing_inference.py"
|
|
fi
|
|
|
|
echo "================================================================="
|
|
echo " ⚖️ Starting Daily Chicken Weighing Run (06:00 WIB)"
|
|
echo " Workspace: $SCRIPT_DIR"
|
|
echo " Target Script: $WEIGHING_INFERENCE_SCRIPT"
|
|
echo "================================================================="
|
|
|
|
if [ ! -f "$WEIGHING_INFERENCE_SCRIPT" ]; then
|
|
echo "❌ Error: Weighing inference script not found at $WEIGHING_INFERENCE_SCRIPT" >&2
|
|
exit 1
|
|
fi
|
|
|
|
"$PYTHON" "$WEIGHING_INFERENCE_SCRIPT"
|
|
|
|
echo "✅ Daily chicken weighing completed successfully."
|