Skip to content

Conversation

@vincentkoppen
Copy link
Member

@vincentkoppen vincentkoppen commented Jan 29, 2025

  • Update get_components to use the new tmp_remove_nodes context manager instead of copying the graph
    • Allow call without any argument
  • Add a deprecation warning for the substation_nodes argument in the get_components function
  • Internally transition to the new context manager and call get_components without any argument.

@vincentkoppen vincentkoppen force-pushed the feat/improve_get_components branch 2 times, most recently from c4fb7bb to 9f3bd5b Compare January 29, 2025 10:48
@vincentkoppen vincentkoppen force-pushed the feat/improve_get_components branch 2 times, most recently from 9167327 to 68adcd2 Compare February 1, 2025 16:38
@jaapschoutenalliander
Copy link
Member

For some reason I do not see the performance boost when comparing the tests in https://github.com/PowerGridModel/power-grid-model-ds/blob/main/tests/performance/graph_performance_tests.py to main...

@Thijss Thijss force-pushed the feat/improve_get_components branch from 24b000d to 0351b12 Compare February 3, 2025 20:24
@Thijss Thijss removed the v1.1 label Feb 5, 2025
Base automatically changed from feat/tmp-remove-nodes to main February 5, 2025 14:48
@Thijss Thijss marked this pull request as draft February 11, 2025 06:47
@vincentkoppen vincentkoppen force-pushed the feat/improve_get_components branch from d38b33a to 7b31366 Compare February 26, 2025 16:14
@vincentkoppen vincentkoppen changed the title refactor(BaseGraph): improve performance of get_components feat(BaseGraph): deprecation warning for substation_nodes argument in get_components Feb 26, 2025
@vincentkoppen vincentkoppen force-pushed the feat/improve_get_components branch from 7b31366 to 554a71a Compare February 26, 2025 16:15
@sonarqubecloud
Copy link

@vincentkoppen vincentkoppen marked this pull request as ready for review February 26, 2025 16:20
Copy link
Member

@jaapschoutenalliander jaapschoutenalliander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clear warning, nicely done

Signed-off-by: Thijs Baaijen <[email protected]>
@sonarqubecloud
Copy link

@Thijss Thijss merged commit 7c39e21 into main Apr 18, 2025
19 checks passed
@Thijss Thijss deleted the feat/improve_get_components branch April 18, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants