Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing fixes #253

Merged
merged 7 commits into from
Jan 18, 2024
Merged

Writing fixes #253

merged 7 commits into from
Jan 18, 2024

Conversation

andlaus
Copy link
Member

@andlaus andlaus commented Jan 12, 2024

This PR fixes a few omissions and minor screwups in the output writing code. With this, the written PDX files hopefully contain a much larger subset of the information (all?) that is contained by database objects.

Andreas Lauser <[email protected]>, on behalf of MBition GmbH.
Provider Information

this allows to easily dump the contents of the whole database objects.

Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Florian Jost <[email protected]>
@andlaus andlaus requested a review from kayoub5 January 12, 2024 17:03
it turns out that the sub-parameter definitions are not interspersed
with the for their default values, but that after all sub-params are
outlined, there is a single "COMPLEX-PHYSICAL-DEFAULT-VALUE" tag which
defines the default for all of them. This makes a little more sense
than my original interpretation of the spec, but I still have
questions:

- why is the list of subparameters not contained in a "<SUBPARAMS>"
  tag like almost everything else in ODX?
- what is the point of specifying a default value for the complex
  physical parameter when the constituent parameters can define their
  own defaults? which values get priority?

Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Florian Jost <[email protected]>
the SCALE-LABEL subtag can only be omitted if the corresponding
attribute is `None`.

Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Florian Jost <[email protected]>
Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Florian Jost <[email protected]>
Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Florian Jost <[email protected]>
the {MAX,MIN}-NUMBER-OF-ITEMS subtags were missing.

Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Florian Jost <[email protected]>
…g at `.dtc_values`

for some reason, this is more stable.

Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Florian Jost <[email protected]>
@andlaus andlaus merged commit 7a41b12 into mercedes-benz:main Jan 18, 2024
6 checks passed
@andlaus andlaus mentioned this pull request Jan 19, 2024
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