Skip to content

Commit

Permalink
remove commented out code from before
Browse files Browse the repository at this point in the history
  • Loading branch information
azaidi06 committed Dec 13, 2024
1 parent 4df4606 commit f921d2a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions idaes/apps/grid_integration/examples/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
import pandas as pd


# with resources.path("idaes.tests.prescient.5bus", "__init__.py") as pkg_file:
# prescient_5bus = Path(pkg_file).parent

with resources.as_file(resources.files("idaes.tests.prescient.5bus").joinpath("__init__.py")) as pkg_file:
prescient_5bus = Path(pkg_file).parent

Expand Down
5 changes: 0 additions & 5 deletions idaes/apps/grid_integration/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ def self_scheduler_output_dir(self, tmp_path: Path) -> Path:

@pytest.fixture
def self_scheduler_plugin_path(self) -> Path:
# with resources.path(
# "idaes.apps.grid_integration.tests",
# "self_scheduler_integration_test_plugin.py",
# ) as p:
# return Path(p)
with resources.as_file(resources.files("idaes.apps.grid_integration.tests").joinpath("self_scheduler_integration_test_plugin.py")) as p:
return Path(p)

Expand Down
3 changes: 0 additions & 3 deletions idaes/tests/prescient/test_prescient.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ def data_path(self) -> Path:
# we need to specify __init__.py as a workaround for Python 3.9,
# where importlib.resources.path() requires the resource to be a file
# directories are not supported and will raise an error if attempted
#with resources.path("idaes.tests.prescient.5bus", "__init__.py") as pkg_file:
# return Path(pkg_file).parent

with resources.as_file(resources.files("idaes.tests.prescient.5bus").joinpath("__init__.py")) as pkg_file:
prescient_5bus = Path(pkg_file).parent

Expand Down

0 comments on commit f921d2a

Please sign in to comment.