DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to calibrate an ASM model from a task file with AutoWWTP ASM Demo

Run the full ASM workflow on plant data and get a report, calibration results and a final summary.

Short answer: Install the dependencies with pip install langgraph langchain-core langchain-openai langchain-anthropic langchain-google-genai pandas numpy scipy matplotlib openpyxl markdown-pdf pymoo; then set the LLM variables in PowerShell, starting with $env:AUTOWWTP_LLM_API_KEY="your-api-key", then set AUTOWWTP_LLM_BASE_URL, AUTOWWTP_LLM_MODEL and AUTOWWTP_LLM_MESSAGE_CLASS as shown in the LLM Configuration section. All steps.

  • Top pick
  • Research
  • Intermediate
  • 1 hour
  • From the README
  • Any agent

Credentials. Keep your LLM API key in environment variables as the README advises and do not paste it into task files or source code.

Who it is forA wastewater engineer who has plant data in a spreadsheet and needs an ASM model calibrated for an anaerobic, anoxic or aerobic tank or the full process section.

The problemBuilding an ASM model, running sensitivity analysis and calibrating parameters by hand takes repeated setup and manual checks.

The outcomeA run folder with the process context, plan, configuration, sensitivity and calibration results, figures, an asm_report.md and asm_report.pdf, and final_result.json.

What you need first

  • Python 3.10 or later
  • An LLM service with an API key, base URL, model name and message class (openai, anthropic or gemini)
  • A task text file and an input spreadsheet such as input/data1.xlsx
  • Ability to edit the README's local Windows path to match your clone location

Steps

  1. Install the dependencies with pip install langgraph langchain-core langchain-openai langchain-anthropic langchain-google-genai pandas numpy scipy matplotlib openpyxl markdown-pdf pymoo.
  2. Set the LLM variables in PowerShell, starting with $env:AUTOWWTP_LLM_API_KEY="your-api-key", then set AUTOWWTP_LLM_BASE_URL, AUTOWWTP_LLM_MODEL and AUTOWWTP_LLM_MESSAGE_CLASS as shown in the LLM Configuration section.
  3. Open a terminal in the code/langgraph-en folder of your clone, since the README path is a local Windows path you must replace.
  4. Confirm that your task file in task/ names the data path such as input/data1.xlsx, the modeled object, the target state variables, the boundary conditions and the calibration targets.
  5. Run python main.py --task-file task/task1.md.
  6. Open the new output/task-YYYYMMDD-HHMMSS-ffffff folder and read asm_report.md and final_result.json.

Prompt for your agent

Use the AutoWWTP-ASM repo at <repo-folder>/code/langgraph-en to run the task file <task-file> with the LLM variables already set. Expected output: a new output/task-* folder containing asm_report.md, final_result.json and midoutput/calibration.json. Verify that midoutput/sensitivity.json and midoutput/calibration.json both exist before reporting success.

Caveat. The README gives a local Windows path and a placeholder LLM base URL, so you must adapt both before the first run.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for jsdsg666/AutoWWTP-ASM-Demo and "Calibrate an ASM model from a task file"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer