Skip to content

Fix time functions - #33

Merged
InfinityMonkeyAtWork merged 4 commits into
mainfrom
fix-time-functions
Jul 8, 2026
Merged

Fix time functions#33
InfinityMonkeyAtWork merged 4 commits into
mainfrom
fix-time-functions

Conversation

@InfinityMonkeyAtWork

Copy link
Copy Markdown
Owner

No description provided.

InfinityMonkeyAtWork and others added 4 commits July 6, 2026 16:03
include variable initial guess fit recovery here rather than pytest because static initial guesses are meaningless and variable/random ones could break test pipeline in a non-reproducable way
Breaking change. The per-function y0 offset broke the causality
convention f(t < t0) = 0 inconsistently across dynamics functions
(sqrtFun/erfFun leaked y0 before t0; the rest clamped to 0) and
duplicated what an additive component already expresses. Drop y0 from
linFun, expFun, sinFun, sinDivX, erfFun, and sqrtFun, and add
stepFun(t, A, t0) as the dedicated causal offset primitive (erfFun is
its Gaussian-broadened counterpart). Offsets and plateaus are now
modeled by adding a stepFun component, e.g. expFun + stepFun sharing t0
for a decay to a nonzero plateau.

Wire stepFun through both evaluation paths (mcp and the lowered
GIR/eval_2d dispatch, new DynFuncKind.STEPFUN) and migrate every model
YAML, notebook, and doc that referenced dynamics y0 (all values were 0,
so pure deletions). Stale y0 entries now fail model validation with a
parameter-count error. The energy-domain Offset(x, y0) background is
unchanged.

Also from the functions audit:
- correct docstrings: expRiseCONV (anti-causal, not causal), boxCONV
  (hard edges, no smoothing), GLS/GLP (valid range m in [0, 1]; GLP
  gives NaN/inf for m < 0), DS (asymmetric tail extends toward x < x0).
- add end-to-end lowered-2D parity tests for every dynamics driver
  (stepFun, sinFun, linFun, sinDivX, erfFun, sqrtFun), verifying each
  DynFuncKind enum/dispatch entry and param count against the mcp
  interpreter -- previously only expFun was exercised this way, and
  this change decremented all those param counts.
and housekeeping:
author e-mail
reset PLAN md
@InfinityMonkeyAtWork
InfinityMonkeyAtWork merged commit f3acc7a into main Jul 8, 2026
4 checks passed
@InfinityMonkeyAtWork
InfinityMonkeyAtWork deleted the fix-time-functions branch July 8, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant