Skip to content

Commit

Permalink
fix constants for graph performance tests
Browse files Browse the repository at this point in the history
Signed-off-by: Thijs Baaijen <[email protected]>
  • Loading branch information
Thijss committed Feb 3, 2025
1 parent a3d3e7e commit 62c6cde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/performance/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
}

GRAPH_SETUP_CODES = {
"rustworkx": "from power_grid_model_ds.model.grids.base import Grid;"
+ "from power_grid_model_ds.data_source.generator.grid_generators import RadialGridGenerator;"
+ "from power_grid_model_ds.model.graphs.models import RustworkxGraphModel;"
"rustworkx": "from power_grid_model_ds import Grid;"
+ "from power_grid_model_ds.generators import RadialGridGenerator;"
+ "from power_grid_model_ds.graph_models import RustworkxGraphModel;"
+ "grid=RadialGridGenerator(nr_nodes={graph_size}, grid_class=Grid, graph_model=RustworkxGraphModel).run()",
}

Expand Down
1 change: 0 additions & 1 deletion tests/performance/graph_performance_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# pylint: disable=missing-function-docstring

GRAPH_SIZES = [100, 500, 1000, 5000]
GRAPH_SIZES = [100, 500, 1000]


def perftest_initialize():
Expand Down

0 comments on commit 62c6cde

Please sign in to comment.