Skip to content

Commit

Permalink
fix graph imports for 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 a40bedd commit f7e0085
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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
10 changes: 5 additions & 5 deletions tests/performance/graph_performance_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def perftest_add_node():


if __name__ == "__main__":
perftest_initialize()
perftest_set_feeder_ids()
# perftest_initialize()
# perftest_set_feeder_ids()
perftest_get_components()
perftest_delete_node()
perftest_add_node()
perftest_from_arrays()
# perftest_delete_node()
# perftest_add_node()
# perftest_from_arrays()

0 comments on commit f7e0085

Please sign in to comment.