Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Avoid the creation of properties by mistake #104

Open
pgambier opened this issue Apr 27, 2017 · 0 comments
Open

Avoid the creation of properties by mistake #104

pgambier opened this issue Apr 27, 2017 · 0 comments

Comments

@pgambier
Copy link

The same syntax is used to create a new property and to assign a value to an existing one which can lead to mistakes.

Example :

transformer('PST_ID').phaseTapChanger.tapPosition = 20

The value of the tap position for Boutre is assigned to 20.

transformer('PST_ID').phaseTapChanger.tapPoistion = 20

The tapPoistion property is created and assigned to 20.

Suggestions :

  1. Change the syntax
  2. Create a safe mode to avoid the creation of properties if not necessary
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants