Skip to content

Commit

Permalink
Nrcan 380 (#1489)
Browse files Browse the repository at this point in the history
* replaced costing_enabled with intrinsic method to check if BTAPCosting is present

* replaced costing_enabled with intrinsic method to check if BTAPCosting is present
  • Loading branch information
phylroy authored Apr 3, 2023
1 parent 3df5aee commit c16ec80
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def initialize(input_folder: nil,
model.setSqlFile(sql)

@cost_result = nil
if @options[:enable_costing] == true
if defined?(BTAPCosting)
# Perform costing
costing = BTAPCosting.new
costing.load_database
Expand Down
1 change: 0 additions & 1 deletion utilities/btap_cli/tests/run_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
:door_construction_cond: NECB_Default
:ecm_system_name: NECB_Default
:electrical_loads_scale: NECB_Default
:enable_costing: false
:epw_file: CAN_QC_Montreal-Trudeau.Intl.AP.716270_CWEC2016.epw
:erv_package: NECB_Default
:ext_floor_cond: NECB_Default
Expand Down
1 change: 0 additions & 1 deletion utilities/btap_cli/tests/run_options_local_osm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
:door_construction_cond: NECB_Default
:ecm_system_name: NECB_Default
:electrical_loads_scale: NECB_Default
:enable_costing: false
:epw_file: CAN_QC_Montreal-Trudeau.Intl.AP.716270_CWEC2016.epw
:erv_package: NECB_Default
:ext_floor_cond: NECB_Default
Expand Down

0 comments on commit c16ec80

Please sign in to comment.