forked from grid-parity-exchange/Egret
-
Notifications
You must be signed in to change notification settings - Fork 0
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 grid-parity-exchange#13 from bknueven/uc_improvements
UC improvements
- Loading branch information
Showing
10 changed files
with
585 additions
and
19 deletions.
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,28 @@ | ||
# ___________________________________________________________________________ | ||
# | ||
# EGRET: Electrical Grid Research and Engineering Tools | ||
# Copyright 2019 National Technology & Engineering Solutions of Sandia, LLC | ||
# (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. | ||
# Government retains certain rights in this software. | ||
# This software is distributed under the Revised BSD License. | ||
# ___________________________________________________________________________ | ||
|
||
''' | ||
pytest configuration options for test_unit_commitment.py, | ||
per the pytest examples | ||
''' | ||
import pytest | ||
|
||
def pytest_addoption(parser): | ||
parser.addoption("--runmip", action="store_true", default=False, | ||
help="If enabled, this solves the MIP for each unit " | ||
"commitment instance. For now, the solver gurobi " | ||
"is required for this test." | ||
) | ||
|
||
def pytest_collection_modifyitems(config, items): | ||
if not config.getoption("--runmip"): | ||
skip_mip = pytest.mark.skip(reason="need --runmip option to run") | ||
for item in items: | ||
if "mip" in item.keywords: | ||
item.add_marker(skip_mip) |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.