From eed063f16c8dd9248529a864840c30171feacdc2 Mon Sep 17 00:00:00 2001 From: ltadeu6 Date: Sun, 24 May 2026 18:26:19 -0300 Subject: [PATCH] =?UTF-8?q?Remove=20c=C3=B3digo=20morto,=20eliminar=20cons?= =?UTF-8?q?ole.log=20e=20deduplicate=20cat=C3=A1logo=20de=20par=C3=A2metro?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove solve.js (código morto que referenciava globais inexistentes) - Remove console.log de PSO.run() e comentários de debug - Exporta parameterCatalog, modelParameters e getParamDisplayInfo de search.js - index.html passa a importar esses símbolos em vez de redefiní-los Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 85 ++++++++++++++++++++++++++++++++++ www/index.html | 113 +--------------------------------------------- www/src/PSO.js | 5 -- www/src/search.js | 6 +-- www/src/solve.js | 45 ------------------ 5 files changed, 89 insertions(+), 165 deletions(-) create mode 100644 CLAUDE.md delete mode 100644 www/src/solve.js diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..151da5c --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,85 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## What is BioLab + +BioLab Parameter Explorer is a scientific web application that estimates kinetic parameters for microbial growth and substrate consumption models. Given time-series measurements of biomass (cells, g/L) and residual substrate (g/L), it runs Particle Swarm Optimization (PSO) over seven built-in kinetic models and ranks them by the Akaike Information Criterion (AIC). + +The app is packaged with Apache Cordova and targets Electron (desktop), Android, and Browser. + +## Commands + +### Tests (run from `www/`) + +```sh +cd www && node tests/demo.mjs +cd www && node tests/synthetic-search.mjs +# or both at once: +cd www && npm test +``` + +Tests use Node.js directly — no test runner or build step needed. + +### Run / build (Electron) + +```sh +cordova run electron # dev run +cordova build electron --release --verbose # release build +``` + +### Run on Android + +```sh +# Set up environment first (or source env.sh): +source env.sh +# env.sh sets ANDROID_HOME, ANDROID_SDK_ROOT, PATH entries for the SDK, +# and isolates Gradle cache to ./.gradle, then calls `cordova run android`. +``` + +### Serve in browser + +```sh +cordova run browser +# or just open www/index.html via any static file server +``` + +## Architecture + +``` +www/ + index.html — single-page app; all UI logic is an inline