Skip to content

Commit

Permalink
remove rounding in openmdao api
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrbortolotti committed Jul 2, 2024
1 parent a2761ac commit 6d16080
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions landbosse/landbosse_omdao/landbosse.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,15 +598,15 @@ def compute_total_bos_costs(self, costs_by_module_type_operation, master_output_
commissioning_per_kW = bos_per_kw * commissioning_pct
decomissioning_per_kW = bos_per_kw * decommissioning_pct

outputs["total_capex_kW"] = np.round(bos_per_kw + commissioning_per_kW + decomissioning_per_kW, 0)
outputs["total_capex"] = np.round(bos_per_project + commissioning_per_project + decomissioning_per_project, 0)
outputs["bos_capex"] = round(bos_per_project, 0)
outputs["bos_capex_kW"] = round(bos_per_kw, 0)
outputs["installation_capex"] = round(installation_per_project, 0)
outputs["installation_capex_kW"] = round(installation_per_kW, 0)
outputs["total_capex_kW"] = bos_per_kw + commissioning_per_kW + decomissioning_per_kW
outputs["total_capex"] = bos_per_project + commissioning_per_project + decomissioning_per_project
outputs["bos_capex"] = bos_per_project
outputs["bos_capex_kW"] = bos_per_kw
outputs["installation_capex"] = installation_per_project
outputs["installation_capex_kW"] = installation_per_kW

actual_construction_months = master_output_dict["actual_construction_months"]
outputs["installation_time_months"] = round(actual_construction_months, 0)
outputs["installation_time_months"] = actual_construction_months

def modify_component_lists(self, inputs, discrete_inputs):
"""
Expand Down

0 comments on commit 6d16080

Please sign in to comment.