-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #422 from Breakthrough-Energy/daniel/create_get_bu…
…s_demand fix: ensure that get_bus_demand works in Create state
- Loading branch information
1 parent
59f1038
commit 224a909
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pytest | ||
|
||
from powersimdata.scenario.scenario import Scenario | ||
|
||
|
||
@pytest.mark.ssh | ||
def test_get_bus_demand(): | ||
scenario = Scenario("") | ||
scenario.state.set_builder(interconnect="Texas") | ||
scenario.state.builder.set_base_profile("demand", "vJan2021") | ||
scenario.state.get_bus_demand() |