Commit 539b843
committed
fix: validate pressures before computing pressure ratios in simplified train
Move validate_pressures() call before create_compressor_model() to prevent
divide-by-zero warning when suction pressure is zero. The validation error
was already raised, but after the division had already been attempted.1 parent da4cd0f commit 539b843
1 file changed
Lines changed: 6 additions & 6 deletions
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1313 | 1313 | | |
1314 | 1314 | | |
1315 | 1315 | | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
1316 | 1322 | | |
1317 | 1323 | | |
1318 | 1324 | | |
| |||
1321 | 1327 | | |
1322 | 1328 | | |
1323 | 1329 | | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
1327 | | - | |
1328 | | - | |
1329 | | - | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
| |||
0 commit comments