We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net = pypowsybl.network.create_ieee14() net_pu = pypowsybl.per_unit_view(net) net.nominal_apparent_power # Works net_pu.sn # Crashes
net_pu.sh should return the same as net.nominal_apparent_power
net_pu.sh
net.nominal_apparent_power
No response
pypowsybl 1.8.1
TypeError Traceback (most recent call last) Cell In[10], line 4 2 net_pu = pypowsybl.per_unit_view(net) 3 net.nominal_apparent_power ----> 4 net_pu.sn File /usr/local/lib/python3.11/site-packages/pypowsybl/network/impl/perunit.py:51, in PerUnitView.sn(self) 46 @property 47 def sn(self) -> float: 48 \"\"\" 49 The base power, in MW, used for per-uniting 50 \"\"\" ---> 51 return self._network.nominal_apparent_power() TypeError: 'int' object is not callable"
The text was updated successfully, but these errors were encountered:
Fixed in #923
Sorry, something went wrong.
@nicow-elia be aware that the per-unit view is deprecated and that the right to do it now is #922
Successfully merging a pull request may close this issue.
Describe the current behavior
Describe the expected behavior
net_pu.sh
should return the same asnet.nominal_apparent_power
Describe the steps
No response
Environment
pypowsybl 1.8.1
Relevant Log Output
Extra Information
No response
The text was updated successfully, but these errors were encountered: