Dyscolab 1.3.0 release #9
olistarosta
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Dyscolab 1.3.0: a new agent skill, a new fitting API and more
Dyscolab 1.3.0 has just been released, with Symbolite, Poincare and SimBio 1.3.0 and Jablonski 0.5.0. It includes a new agent skill that makes coding agents more effective at using Dyscolab's libraries, a revamped fitting API that can fit arbitrary simulations and combine several datasets in one fit, a
strip_unitsfunction that creates a unitless copy of a system, expanded documentation, and a number of other smaller updates.The Dyscolab modeling skill
LLMs are an increasingly important part of how scientific simulations get made, but they have a harder time with less established libraries that are not well represented in their training data. The
dyscolab-modelingskill gives agents the information they need to use Poincare, SimBio and Jablonski correctly. As well as serving as a reference, it gives advice on how to structure and write projects in an idiomatic and auditable way, based on real-world examples.The skill comes bundled with the packages, but it has to be installed into your agent's skills folder separately. In a pixi project, do this with pixi skills:
The link follows the environment, so the skill is updated together with the libraries.
In any other environment, run the installer with the environment's Python (and run it again after upgrading or adding a library):
python -m poincare.skill install --dest .agents/skills # or .claude/skills, ~/.codex/skills, … python -m poincare.skill check .agents/skills/dyscolab-modelingIt can also be installed on its own with several tools, including the skills CLI:
For more details and further installation instructions, see the new skills section on Dyscolab's page.
New fitting API
The new Poincare release includes a generalized fitting API. Its core is the new
Fitterobject, which takes arbitrary functions that receive a simulator and return a result to compare with data. This means a single fit can combine several observables, such as a time series and a steady-state sweep, each with its own weights. You can also pass experimental uncertainties (sigma=), which are used to calculate the covariance of the fitted parameters.The result is a dict of the best-fit values, with the covariance matrix in
result.pcov. The existing Poincare and Jablonski functions are now wrappers to this API, so they include the new output and inputs.For more details, see the new fitting tutorial (or run it interactively on marimo).
Strip units
The
strip_unitsfunction returns a new, nondimensionalized version of a system with units. Every quantity is replaced by its magnitude in SI base units, and the removed units are stored in the new system's_unitsdict.This is especially relevant for an upcoming announcement about algebraic analysis methods for systems, so stay tuned.
Other features
The release also includes other features, such as:
Simulator.with_timesandRebopSimulator.with_timesstore the simulation times (t_spanandsave_at), sosolve,interactand Jablonski's simulation functions no longer need them as arguments.RebopSimulatorcan average over repeated runs (n_runs), takes transforms, and accepts parameters as constant species.notebook_reportdisplays model reports in marimo or Jupyter notebooks in Poincare, SimBio (with a reactions section) and Jablonski (with a Jablonski diagram).TripletTripletAnnihilationtransition, andConstantGroundStateto make a level with constant population. See the new emission, absorption and quantum yield tutorial.Some of these changes are breaking, so check each library's changelog before upgrading.
Roadmap
The next steps continue the recent push to improve performance, including calculating a system's Jacobian for more efficient implicit methods, and work on the aforementioned mysterious announcement about algebraic methods, because the most performant simulation is no simulation at all.
For more information on the Dyscolab libraries in general, see the full docs on dyscolab's page.
All reactions