import json
import subprocess

# profSheer: sheer line (borda) - tem um mínimo suave e sobe para vante
# Vamos usar 4 nós suaves para profSheer: (0, 3.175), (8, 3.016), (15, 3.25), (20, 3.746)

cmd_ajuste = [
    "python3", "/home/magdalena/.hermes/plugins/iarquiteto-naval-brana/skills/brana-rascunho-2d-interativo/scripts/ajustar.py",
    "--loa-sq", "20",
    "--projeto", "/home/magdalena/eee/alunos/antonio-manoel-costa/projeto.json",
    "--curva", "planSheer", "0,2.381", "4,3.45", "8,3.889", "13,3.25", "17,1.80", "20,0",
    "--curva", "profSheer", "0,3.175", "8,3.016", "15,3.30", "20,3.746",
    "--curva", "profKeel", "0,0.794", "4,0.20", "8,0.0", "14,0.15", "17,1.10", "20,3.746"
]

res_aj = subprocess.run(cmd_ajuste, capture_output=True, text=True)
print("Ajuste curvas:", res_aj.stdout, res_aj.stderr)
