Skip to content

Shorthand notation - #185

Open
SBlokhuizen wants to merge 2 commits into
developfrom
feature/shorthand-notation
Open

Shorthand notation#185
SBlokhuizen wants to merge 2 commits into
developfrom
feature/shorthand-notation

Conversation

@SBlokhuizen

@SBlokhuizen SBlokhuizen commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Updates parsing of shorthand string, float and integer notation as a waveform containing a single constant tendency.

@SBlokhuizen
SBlokhuizen marked this pull request as ready for review August 3, 2026 12:25
@SBlokhuizen
SBlokhuizen force-pushed the feature/shorthand-notation branch from 6e12967 to 99f978a Compare August 5, 2026 11:37
Comment on lines +175 to +187
waveform = Waveform(
waveform=[
{
"user_type": "constant",
"user_value": waveform,
"line_number": line_number,
}
],
yaml_str=yaml_str,
line_number=line_number,
name=name,
dd_version=dd_version,
)

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.

Is this exported to a waveform with single constant tendency again?

Would it be better to have a ConstantWaveform class instead?

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.

Btw, this used to be handled as a derived waveform without dependencies, right? Can you explain why we need this distinction?

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