Skip to content

Commit

Permalink
Assignment check for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mjprilliman committed Sep 13, 2023
1 parent 1437edf commit abbae6d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shared/lib_pv_io_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,12 @@ PVSystem_IO::PVSystem_IO(compute_module* cm, std::string cmName, Simulation_IO*
}

numberOfInverters = cm->as_integer("inverter_count");
numberOfInvertersClipping = cm->as_integer("num_inverter_subhourly_clipping");
if (cm->is_assigned("num_inverter_subhourly_clipping")) {
numberOfInvertersClipping = cm->as_integer("num_inverter_subhourly_clipping");
}
else {
numberOfInvertersClipping = 1;
}

ratedACOutput = Inverter->ratedACOutput * numberOfInverters;
acDerate = 1 - cm->as_double("acwiring_loss") / 100;
Expand Down

0 comments on commit abbae6d

Please sign in to comment.