Delete the Socavg

This commit is contained in:
atef 2024-01-10 16:46:24 +01:00
parent 180529bf40
commit b0bd8fb3e2
2 changed files with 0 additions and 6 deletions

View File

@ -141,10 +141,6 @@ public static class Aggregator
batterySoc.Add(value); batterySoc.Add(value);
break; break;
case "/AvgSoc":
batteryAvgSoc.Add(value);
break;
case "/PvOnDc/Dc/Power" or "/SumPvPower": case "/PvOnDc/Dc/Power" or "/SumPvPower":
pvPowerAverage.Add(value); pvPowerAverage.Add(value);
break; break;
@ -199,7 +195,6 @@ public static class Aggregator
{ {
MaxSoc = batterySoc.Any() ? batterySoc.Max() : 0.0, MaxSoc = batterySoc.Any() ? batterySoc.Max() : 0.0,
MinSoc = batterySoc.Any() ? batterySoc.Min() : 0.0, MinSoc = batterySoc.Any() ? batterySoc.Min() : 0.0,
AvgSoc = batteryAvgSoc.Any() ? batteryAvgSoc.Average() : 0.0,
SumDischargingBatteryPower = batteryDischargePower.Any() ? batteryDischargePower.Sum() : 0.0, SumDischargingBatteryPower = batteryDischargePower.Any() ? batteryDischargePower.Sum() : 0.0,
SumChargingBatteryPower = batteryChargePower.Any() ? batteryChargePower.Sum() : 0.0, SumChargingBatteryPower = batteryChargePower.Any() ? batteryChargePower.Sum() : 0.0,
SumGridExportPower = gridPowerExport.Any() ? gridPowerExport.Sum() : 0.0, SumGridExportPower = gridPowerExport.Any() ? gridPowerExport.Sum() : 0.0,

View File

@ -14,7 +14,6 @@ public class AggregatedData
{ {
public required Double MinSoc { get; set; } public required Double MinSoc { get; set; }
public required Double MaxSoc { get; set; } public required Double MaxSoc { get; set; }
public required Double AvgSoc { get; set; }
public required Double SumPvPower { get; set; } public required Double SumPvPower { get; set; }
public required Double SumDischargingBatteryPower { get; set; } public required Double SumDischargingBatteryPower { get; set; }
public required Double SumChargingBatteryPower { get; set; } public required Double SumChargingBatteryPower { get; set; }