Skip to content

Commit

Permalink
revise ResStockArguments
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiliu committed Oct 22, 2024
1 parent d8c3c8d commit 3a000e5
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 348 deletions.
235 changes: 0 additions & 235 deletions measures/BuildElectricalPanel/measure.rb

This file was deleted.

113 changes: 0 additions & 113 deletions measures/BuildElectricalPanel/resources/electrical_panels.rb

This file was deleted.

6 changes: 6 additions & 0 deletions measures/ResStockArguments/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,12 @@ def run(model, runner, user_arguments)
register_value(runner, arg_name.to_s, arg_value)
end

# Electric Panel
# collect inputs, execute resources/electric_panel.rb methods, output service rating and available breaker spaces
# args[:electric_panel_service_breaker_spaces_remaining] = y

This comment has been minimized.

Copy link
@lixiliu

lixiliu Oct 22, 2024

Author Contributor

@yingli-NREL - this is the call function for breaker space. I believe the breaker space output is binned? You'll need to convert the bins to values similar to capacity.

Can you create a branch off of mine for breaker space assignment? I think you can develop your code/functions in electrical_panels.rb?

capacity_sampler = RatedCapacityGenerator.new(runner: runner)
cap_bin, cap_val = capacity_sampler.assign_rated_capacity(args: args)
args[:electric_panel_service_rating_bin], args[:electric_panel_service_rating] = cap_bin, cap_val
return true
end

Expand Down
Loading

0 comments on commit 3a000e5

Please sign in to comment.