Skip to content

dtype-aware tendency values#175

Open
DaanVanVugt wants to merge 3 commits into
iterorganization:developfrom
DaanVanVugt:tendency-value-dtype
Open

dtype-aware tendency values#175
DaanVanVugt wants to merge 3 commits into
iterorganization:developfrom
DaanVanVugt:tendency-value-dtype

Conversation

@DaanVanVugt

Copy link
Copy Markdown
Contributor

No description provided.

@DaanVanVugt DaanVanVugt force-pushed the tendency-value-dtype branch from 12044d8 to 9c34ca1 Compare June 25, 2026 09:31
@DaanVanVugt DaanVanVugt mentioned this pull request Jun 25, 2026

@SBlokhuizen SBlokhuizen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me! Can you update the docs of the constant tendency?

Comment thread waveform_editor/tendencies/constant.py
- Rename is_string -> is_categorical so booleans are treated like strings
  (held as a zero-order-hold step rather than coerced to float and interpolated)
- Reject mixing categorical (string/boolean) and numeric values within a single
  waveform, since the gaps between them cannot be interpolated
- Document the constant tendency value types (float/int/categorical) in the docs
@DaanVanVugt DaanVanVugt requested a review from SBlokhuizen June 25, 2026 17:01
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.

2 participants