Skip to content

Commit

Permalink
additional test fixes given new soc behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
brtietz committed Feb 17, 2025
1 parent 773827a commit 5dc27b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/ssc_test/cmod_battery_pvsamv1_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ TEST_F(CMPvsamv1BatteryIntegration_cmod_pvsamv1, ResidentialACBatteryModelIntegr
ssc_number_t peakKwCharge[4] = { -2.91, -2.66, -2.25, -3.30 };
ssc_number_t peakKwDischarge[4] = { 1.39, 1.73, 0.97, 1.96 };
ssc_number_t peakCycles[4] = { 1, 1, 1, 3 };
ssc_number_t avgCycles[4] = { 1, 1, 0.4904, 1.0110 };
ssc_number_t avgCycles[4] = { 1, 1, 0.4822, 1.0110 };

// Test peak shaving look ahead, peak shaving look behind, and automated grid power target, and self-consumption. Others require additional input data
for (int i = 0; i < 4; i++) {
Expand Down
4 changes: 2 additions & 2 deletions test/ssc_test/cmod_hybrid_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ TEST_F(CmodHybridTest, PVWattsv8WindBatterySingleOwner) {
ssc_data_get_number(hybrid_outputs, "project_return_aftertax_npv", &npv);

EXPECT_NEAR(om_expenses[1], 10425847, 1);
EXPECT_NEAR(revenue[1], 33062516, 1);
EXPECT_NEAR(ebitda[1], 22636669, 1);
EXPECT_NEAR(revenue[1], 33062517, 1);
EXPECT_NEAR(ebitda[1], 22636670, 1);
EXPECT_NEAR(npv, -227222606, 227222606 * 0.001);

EXPECT_NEAR(total_energy, battannualenergy, total_energy * 0.001);
Expand Down

0 comments on commit 5dc27b0

Please sign in to comment.