Skip to content

Commit

Permalink
init from file
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsze committed Jan 22, 2025
1 parent 4893f86 commit 400df3b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/analysis/test_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
class TestSummary:
# Test data from example workflow:
def test_example_networks(self):
init_from_file(Path("test/analysis/input/config.yaml"))
config.init_from_file(Path("test/analysis/input/config.yaml"))
algorithm_params = config.config.algorithm_params
algorithm_directed = config.config.algorithm_directed
algorithms = list(algorithm_params)
list(algorithm_params)
algorithms_with_params = [f'{algorithm}-params-{params_hash}' for algorithm, param_combos in algorithm_params.items() for params_hash in param_combos.keys()]

example_network_files = Path("test/analysis/input/example").glob("*.txt")
Expand All @@ -28,10 +27,9 @@ def test_example_networks(self):

# Test data from EGFR workflow:
def test_egfr_networks(self):
init_from_file(Path("test/analysis/input/egfr.yaml"))
config.init_from_file(Path("test/analysis/input/egfr.yaml"))
algorithm_params = config.config.algorithm_params
algorithm_directed = config.config.algorithm_directed
algorithms = list(algorithm_params)
list(algorithm_params)
algorithms_with_params = [f'{algorithm}-params-{params_hash}' for algorithm, param_combos in algorithm_params.items() for params_hash in param_combos.keys()]

egfr_network_files = Path("test/analysis/input/egfr").glob("*.txt")
Expand Down

0 comments on commit 400df3b

Please sign in to comment.