-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix: json schema accepts MAXIMUM_DISCHARGE_PRESSURE for single speed … #86
Conversation
...calc/common/libecalc/input/validation/json_schemas/models-single-speed-compressor-train.json
Outdated
Show resolved
Hide resolved
I guess it is good but one snapshot test is failing... :/ @olelod correct logic? |
The logic is correct. Only for single speed compressor trains and only when pressure control is downstream choke. |
e36e49e
to
3ebddc2
Compare
…train when PRESSURE_CONTROL is DOWNSTREAM_CHOKE
3ebddc2
to
868428d
Compare
@@ -2697,6 +2697,20 @@ | |||
}, | |||
"SINGLE_SPEED_COMPRESSOR_TRAIN": { | |||
"additionalProperties": false, | |||
"else": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bytte rekkefølge på if og else? har sikkert ikke noe å si i evaluering, men ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha weird, dette som kom ved å kjøre testene med --snapshot-update :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
begynner å bli veldig avansert json schema. jeg er personlig skeptisk, men vi kan ta dette inn og prøve og se om det funker. Blir fort veldig vanskelig/umulig å lese json schema. På et tidspunkt ønsker vi å generere json schema, så spørs om det blir enklere eller vanskeligere eller "umulig" å representere det samme da ...
…train (#86) when PRESSURE_CONTROL is DOWNSTREAM_CHOKE
…train
when PRESSURE_CONTROL is DOWNSTREAM_CHOKE
Why is this pull request needed?
To fix bug in json schema, that gives wiggly line when using MAXIMUM_DISCHARGE_PRESSURE. This is an allowed property for single speed compressor trains if PRESSURE_CONTROL is set to DOWNSTREAM_CHOKE