Skip to content

Commit

Permalink
Fix issues with single tech configurations and ResultsViewer::Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Jul 19, 2023
1 parent 69adf84 commit 5edfba2
Show file tree
Hide file tree
Showing 54 changed files with 291 additions and 282 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@
},
"ElectricityRates": {
"rate_escalation": [0.000000]
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@
},
"ElectricityRates": {
"rate_escalation": [0.000000]
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@
},
"ElectricityRates": {
"rate_escalation": [0.000000]
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@
},
"ElectricityRates": {
"rate_escalation": [0.000000]
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@
},
"ElectricityRates": {
"rate_escalation": [0.000000]
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
[0.000000]
],
"adjust_timeindex": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000]
},
"HybridTech": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
[0.000000]
],
"adjust_timeindex": [0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000]
},
"HybridTech": {
}
}
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions api/api_autogen/library/defaults/Pvwattsv8_PVWattsNone.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@
"battery_total_cost_lcos": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@
"battery_total_cost_lcos": 8.38445e+07
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@
"battery_total_cost_lcos": 8.29056e+06
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@
"batt_salvage_percentage": 0
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@
"battery_total_cost_lcos": 8.79537e+07
},
"ChargesByMonth": {
},
"HybridFin": {
}
}
}
2 changes: 0 additions & 2 deletions api/api_autogen/library/defaults/Windpower_WindPowerNone.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@
},
"Uncertainty": {
"total_uncert": 12.085
},
"HybridTech": {
}
}
}
22 changes: 2 additions & 20 deletions api/include/SAM_Battery.h
Original file line number Diff line number Diff line change
Expand Up @@ -1710,19 +1710,6 @@ extern "C"
SAM_EXPORT void SAM_Battery_GridLimits_grid_interconnection_limit_kwac_nset(SAM_table ptr, double number, SAM_error *err);


//
// HybridTech parameters
//

/**
* Set is_hybrid: hybrid configuration [0/1]
* options: 0=singletech,1=hybrid
* constraints: None
* required if: ?=0
*/
SAM_EXPORT void SAM_Battery_HybridTech_is_hybrid_nset(SAM_table ptr, double number, SAM_error *err);


/**
* Simulation Getters
*/
Expand Down Expand Up @@ -2200,13 +2187,6 @@ extern "C"
SAM_EXPORT double SAM_Battery_GridLimits_grid_interconnection_limit_kwac_nget(SAM_table ptr, SAM_error *err);


/**
* HybridTech Getters
*/

SAM_EXPORT double SAM_Battery_HybridTech_is_hybrid_nget(SAM_table ptr, SAM_error *err);


/**
* Outputs Getters
*/
Expand Down Expand Up @@ -2341,6 +2321,8 @@ extern "C"

SAM_EXPORT double* SAM_Battery_Outputs_cdf_of_surviving_aget(SAM_table ptr, int* length, SAM_error *err);

SAM_EXPORT double* SAM_Battery_Outputs_cf_battery_replacement_cost_schedule_aget(SAM_table ptr, int* length, SAM_error *err);

SAM_EXPORT double* SAM_Battery_Outputs_cf_energy_net_aget(SAM_table ptr, int* length, SAM_error *err);

SAM_EXPORT double* SAM_Battery_Outputs_cf_om_capacity_aget(SAM_table ptr, int* length, SAM_error *err);
Expand Down
20 changes: 20 additions & 0 deletions api/include/SAM_HostDeveloper.h
Original file line number Diff line number Diff line change
Expand Up @@ -2421,6 +2421,19 @@ extern "C"
SAM_EXPORT void SAM_HostDeveloper_ElectricityRates_rate_escalation_aset(SAM_table ptr, double* arr, int length, SAM_error *err);


//
// HybridFin parameters
//

/**
* Set cf_hybrid_om_sum: Hybrid O&M costs [$]
* options: None
* constraints: None
* required if: None
*/
SAM_EXPORT void SAM_HostDeveloper_HybridFin_cf_hybrid_om_sum_aset(SAM_table ptr, double* arr, int length, SAM_error *err);


/**
* Revenue Getters
*/
Expand Down Expand Up @@ -3087,6 +3100,13 @@ extern "C"
SAM_EXPORT double* SAM_HostDeveloper_ElectricityRates_rate_escalation_aget(SAM_table ptr, int* length, SAM_error *err);


/**
* HybridFin Getters
*/

SAM_EXPORT double* SAM_HostDeveloper_HybridFin_cf_hybrid_om_sum_aget(SAM_table ptr, int* length, SAM_error *err);


/**
* Outputs Getters
*/
Expand Down
22 changes: 2 additions & 20 deletions api/include/SAM_Pvwattsv8.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,19 +404,6 @@ extern "C"
SAM_EXPORT void SAM_Pvwattsv8_AdjustmentFactors_adjust_timeindex_aset(SAM_table ptr, double* arr, int length, SAM_error *err);


//
// HybridTech parameters
//

/**
* Set is_hybrid: hybrid configuration [0/1]
* options: 0=singletech,1=hybrid
* constraints: None
* required if: ?=0
*/
SAM_EXPORT void SAM_Pvwattsv8_HybridTech_is_hybrid_nset(SAM_table ptr, double number, SAM_error *err);


/**
* SolarResource Getters
*/
Expand Down Expand Up @@ -530,13 +517,6 @@ extern "C"
SAM_EXPORT double* SAM_Pvwattsv8_AdjustmentFactors_adjust_timeindex_aget(SAM_table ptr, int* length, SAM_error *err);


/**
* HybridTech Getters
*/

SAM_EXPORT double SAM_Pvwattsv8_HybridTech_is_hybrid_nget(SAM_table ptr, SAM_error *err);


/**
* Outputs Getters
*/
Expand All @@ -563,6 +543,8 @@ extern "C"

SAM_EXPORT double SAM_Pvwattsv8_Outputs_capacity_factor_ac_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double* SAM_Pvwattsv8_Outputs_cf_battery_replacement_cost_schedule_aget(SAM_table ptr, int* length, SAM_error *err);

SAM_EXPORT double* SAM_Pvwattsv8_Outputs_cf_energy_net_aget(SAM_table ptr, int* length, SAM_error *err);

SAM_EXPORT double* SAM_Pvwattsv8_Outputs_cf_om_capacity_aget(SAM_table ptr, int* length, SAM_error *err);
Expand Down
Loading

0 comments on commit 5edfba2

Please sign in to comment.