Skip to content

Commit

Permalink
Merge pull request #7128 from ORNL-AMO/issue-7127
Browse files Browse the repository at this point in the history
Issue 7127 - Infinity Value should show 'no flow'
  • Loading branch information
rhernandez-intertech authored Nov 13, 2024
2 parents 000f62d + 027fd5e commit 136225f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@
{{dayTypes[index].name}}
</td>
<td *ngFor="let compressor of compressorSummary">
<span *ngIf="compressor.specificPowerAvgLoad">
{{compressor.specificPowerAvgLoad}}
</span>
<span *ngIf="!compressor.specificPowerAvgLoad">
&mdash;
</span>
<span *ngIf="compressor.specificPowerAvgLoad && !getIsFinite(compressor.specificPowerAvgLoad)">No Flow</span>
<span *ngIf="compressor.specificPowerAvgLoad && getIsFinite(compressor.specificPowerAvgLoad)">{{compressor.specificPowerAvgLoad}}</span>
<span *ngIf="!compressor.specificPowerAvgLoad">&mdash;</span>
</td>

</tr>
Expand All @@ -44,12 +41,9 @@
<span *ngIf="settings.unitsOfMeasure != 'Imperial'"> kW/m<sup>3</sup>/min</span>
</th>
<td *ngFor="let compressor of compressorSummaries[0]">
<span *ngIf="compressor.ratedSpecificPower">
{{compressor.ratedSpecificPower}}
</span>
<span *ngIf="!compressor.ratedSpecificPower">
&mdash;
</span>
<span *ngIf="compressor.ratedSpecificPower && !getIsFinite(compressor.ratedSpecificPower)">No Flow</span>
<span *ngIf="compressor.ratedSpecificPower && getIsFinite(compressor.ratedSpecificPower)">{{compressor.ratedSpecificPower}}</span>
<span *ngIf="!compressor.ratedSpecificPower">&mdash;</span>
</td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ export class CompressorSummaryTableComponent implements OnInit {
this.allTablesString = this.profileTable.nativeElement.innerText;
}

getIsFinite(value: number) {
return isFinite(value);
}

}

0 comments on commit 136225f

Please sign in to comment.