Skip to content

Commit

Permalink
added a couple of init files to make loop tools modules accessible wh…
Browse files Browse the repository at this point in the history
…en not installed in editable mode (watertap-org#1255)
  • Loading branch information
k1nshuk authored Dec 18, 2023
1 parent 97c15f4 commit 0454198
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
Empty file.
Empty file.
23 changes: 2 additions & 21 deletions watertap/tools/analysis_tools/loop_tool/loop_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,9 @@

from idaes.core.solvers import get_solver

from watertap.tools.parameter_sweep import (
ParameterSweep,
RecursiveParameterSweep,
)

from watertap.tools.parameter_sweep import (
DifferentialParameterSweep,
)

from watertap.tools.parameter_sweep import ParameterSweep, DifferentialParameterSweep
from watertap.tools.parameter_sweep import ParameterSweepReader

from watertap.tools.parameter_sweep.parameter_sweep_differential import (
DifferentialParameterSweep,
)

from watertap.tools.analysis_tools.loop_tool.data_merging_tool import *

from watertap.tools.parallel.parallel_manager_factory import (
has_mpi_peer_processes,
get_mpi_comm_process,
Expand Down Expand Up @@ -135,12 +121,9 @@ def __init__(
self.build_run_dict()
self.run_simulations()

def build_run_dict(self, test_setups=False):
def build_run_dict(self):
"""
This builds the dict that will be used for simulatiuons
Arguments:
test_setups : test if configuraiton will intilaize, but not run the simulatuons
"""

loop_dict = ParameterSweepReader()._yaml_to_dict(self.loop_file)
Expand All @@ -160,8 +143,6 @@ def build_run_dict(self, test_setups=False):
self.save_dir,
self.h5_directory,
)
if test_setups:
self.execute_sweep(self.sweep_directory[key], False)

def check_dict_keys(self, test_dict):
"""used to test supported key in provided .yaml file"""
Expand Down

0 comments on commit 0454198

Please sign in to comment.