Skip to content

Add components: AsymLoad, AsymGen, Shunt, VoltageRegulator, Fault#160

Merged
nitbharambe merged 21 commits intomainfrom
feature/add-vtg-reg-asym-loadgen-shunt
Feb 27, 2026
Merged

Add components: AsymLoad, AsymGen, Shunt, VoltageRegulator, Fault#160
nitbharambe merged 21 commits intomainfrom
feature/add-vtg-reg-asym-loadgen-shunt

Conversation

@nitbharambe
Copy link
Copy Markdown
Member

@nitbharambe nitbharambe commented Feb 16, 2026

Also fixes #159

Changes proposed in this PR include:

  • Add new components
  • Fix delete functions
  • Fix _increment_grid_ids_by_offset.

nitbharambe and others added 9 commits February 7, 2026 13:40
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <78108900+nitbharambe@users.noreply.github.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
@nitbharambe
Copy link
Copy Markdown
Member Author

Adding / Updating components guide for future additions in components

  1. Add in src\power_grid_model_ds\_core\model\dtypes\ and src\power_grid_model_ds\_core\model\arrays\ and src\power_grid_model_ds\_core\model\arrays.py
  2. Check topology related changes in existing functions: in _helpers and _modify. Eg. append, _increment_grid_ids_by_offset and delete_* functions
  3. Check corresponding tests

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
@nitbharambe nitbharambe marked this pull request as ready for review February 18, 2026 12:57
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Copy link
Copy Markdown
Member

@vincentkoppen vincentkoppen left a comment

Choose a reason for hiding this comment

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

Had a quick look and looks good overal.
One remark on the delete_appliance at this moment in time already. Will give a more thorough review end of next week once we have determined the path forward with regarding the delete functions.

Comment thread src/power_grid_model_ds/_core/model/grids/base.py Outdated
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Copy link
Copy Markdown
Member

@vincentkoppen vincentkoppen left a comment

Choose a reason for hiding this comment

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

Looks good, we will add the generic delete in a seperate PR

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
@sonarqubecloud
Copy link
Copy Markdown

@nitbharambe nitbharambe merged commit e4897d6 into main Feb 27, 2026
15 checks passed
@nitbharambe nitbharambe deleted the feature/add-vtg-reg-asym-loadgen-shunt branch February 27, 2026 11:34
vincentkoppen pushed a commit that referenced this pull request Feb 27, 2026
* add components

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add measured_object to merging logic

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add fault

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add test modify

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* fix delete branch, add delete appliance

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add appliance array base type

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add new tests

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add topologically full grid

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* delete_node for fixture

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* revise test

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* revert deletion

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* delete init file merge commit 2

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* readd init file merge commit 3

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* impor tchange merge commit 4

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add graph asserts

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add graph asserts 2

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* make deleting appliances private

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* remove qmin max

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

---------

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <78108900+nitbharambe@users.noreply.github.com>
Thijss added a commit that referenced this pull request Feb 27, 2026
* docs: setup feeder ids notebook

Signed-off-by: jaapschoutenalliander <jaap.schouten@alliander.com>

* update notebook

Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>

* feat: add grid and graph repr method (#152)

* feat: add grid repr method

Signed-off-by: jaapschoutenalliander <jaap.schouten@alliander.com>

* feat: add grid repr method

Signed-off-by: jaapschoutenalliander <jaap.schouten@alliander.com>

* feat: add test for repr

Signed-off-by: jaapschoutenalliander <jaap.schouten@alliander.com>

* feat: docstring

Signed-off-by: jaapschoutenalliander <jaap.schouten@alliander.com>

* feat: to_txt

Signed-off-by: jaapschoutenalliander <jaap.schouten@alliander.com>

* chore: add comment to test

Co-authored-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>
Signed-off-by: Jaap Schouten <58551444+jaapschoutenalliander@users.noreply.github.com>

* feat: to_txt

Signed-off-by: jaapschoutenalliander <jaap.schouten@alliander.com>

* feat: graph repr

Signed-off-by: jaapschoutenalliander <jaap.schouten@alliander.com>

---------

Signed-off-by: jaapschoutenalliander <jaap.schouten@alliander.com>
Signed-off-by: Jaap Schouten <58551444+jaapschoutenalliander@users.noreply.github.com>
Co-authored-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>

* Expose AsymPowerSensorArray (#158)

* re-arrange and add AsymPowerSensorArray

Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>

* remove unnecessary code in __init__ in _core module

Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>

---------

Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>

* Add components: AsymLoad, AsymGen, Shunt, VoltageRegulator, Fault (#160)

* add components

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add measured_object to merging logic

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add fault

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add test modify

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* fix delete branch, add delete appliance

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add appliance array base type

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add new tests

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add topologically full grid

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* delete_node for fixture

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* revise test

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* revert deletion

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* delete init file merge commit 2

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* readd init file merge commit 3

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* impor tchange merge commit 4

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add graph asserts

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* add graph asserts 2

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* make deleting appliances private

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

* remove qmin max

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>

---------

Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <78108900+nitbharambe@users.noreply.github.com>

* fix: allow parallel edges in Grid.from_txt (#162)

* fix: allow parallel edges in Grid.from_txt

Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>

* also make order fixed for nodes

Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>

* review comments

Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>

---------

Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>

* linting

Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>

---------

Signed-off-by: jaapschoutenalliander <jaap.schouten@alliander.com>
Signed-off-by: Vincent Koppen <vincent.koppen@alliander.com>
Signed-off-by: Jaap Schouten <58551444+jaapschoutenalliander@users.noreply.github.com>
Signed-off-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
Signed-off-by: Nitish Bharambe <78108900+nitbharambe@users.noreply.github.com>
Co-authored-by: Vincent Koppen <vincent.koppen@alliander.com>
Co-authored-by: Thijs Baaijen <13253091+Thijss@users.noreply.github.com>
Co-authored-by: Nitish Bharambe <78108900+nitbharambe@users.noreply.github.com>
Co-authored-by: Vincent Koppen <53343926+vincentkoppen@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] delete_* function should cover all components

2 participants