Skip to content

Commit

Permalink
fix: avoid breaking results when removing v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jsolaas committed Mar 3, 2025
1 parent 6b67de8 commit 276f297
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libecalc/presentation/json_result/result/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,16 @@ class PumpResult(EquipmentResultBase):
outlet_pressure_bar: TimeSeriesFloat
operational_head: TimeSeriesFloat

streams: None = None # Keep to avoid breaking results validation for data with null for streams, was optional and never set before


class CompressorResult(EquipmentResultBase):
componentType: Literal[ComponentType.COMPRESSOR]
recirculation_loss: TimeSeriesRate
rate_exceeds_maximum: TimeSeriesBoolean

streams: None = None # Keep to avoid breaking results validation for data with null for streams, was optional and never set before


class VentingEmitterResult(EquipmentResultBase):
componentType: Literal[ComponentType.VENTING_EMITTER]
Expand Down

0 comments on commit 276f297

Please sign in to comment.