Skip to content

Formula calculator components - #318

Merged
stewit merged 3 commits into
developfrom
formula-calculator-components
Nov 13, 2026
Merged

stewit merged 3 commits into
developfrom
formula-calculator-components

Conversation

@stewit

@stewit stewit commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

No description provided.

stewit added 3 commits November 13, 2026 17:06
…rting them

Storing a released component requires the components it imports via
import_comp to be stored already. Ordering by nesting level kept all
components (level 0) in the order of the files, so importing, e.g.
deploying the base transformations, failed for a component importing
another one which came later.

runtime/conftest.py provides the base components to import_comp when
pytest collects base components importing other base components, so that
their tests also run with pytest directly, e.g. by ./run check.

Assisted-by: Claude Code:claude-opus-5-5
Calculate a formula like in Excel, e.g. (a + b) / 2, from up to five
timeseries a, b, c, d and e for each point in time with pandas eval, in
the default_timezone from the metadata of the timeseries. The
documentation is written for users without a programming background, and
error messages explain what to change, also for habits from Excel.

Formelrechner is the German version: It imports Formula Calculator via
import_comp and only adds German documentation, names and messages.

Assisted-by: Claude Code:claude-opus-5-5
Running sum of a timeseries restarting every day at midnight, e.g. the
amount so far today from 5-minute values of a mass flow, with German
documentation. By default timestamps mark the end of the interval of
their value, so the value at midnight belongs to the day ending then; the
input rechtsbuendig switches to timestamps marking the start. Days are
those of the given time zone, otherwise of the default_timezone from the
metadata, otherwise UTC, but never the time zone of plots, so that the
sums do not depend on who executes the component. Factors for the time
unit and the unit of the amount convert e.g. mg/s into kg.

Assisted-by: Claude Code:claude-opus-5-5
@stewit
stewit merged commit b96d0f1 into develop Nov 13, 2026
3 checks passed
@stewit
stewit deleted the formula-calculator-components branch November 13, 2026 17:54
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