Comments (9)
You might have updated Andes from an older version. Try running 'andes prepare -q' from the terminal and then running your script again.
from andes.
@cuihantao I have a clone of the master branch Is that the latest?
from andes.
Yes, master is the latest stable version. There might stale generated code by the previous of Andes on your system. Running that could should fix it.
from andes.
@cuihantao it didn't work. This is my full header in Jupyter
import andes
from andes.utils.paths import get_case
from andes.io import *
andes.prepare()
from andes.
Try removing the file '~/.andes/calls.pkl' and running 'andes selftest'.
from andes.
same result.
from andes.
Was on my Phone. Did andes selftest
pass? Could you post the results of the following Python code?
import andes
print(andes.__version__)
ss = andes.System()
ss.undill()
print(ss.calls['__version__'])
Thanks.
from andes.
selftests pass, this is my output
Undilled calls from "/Users/jdlara/.andes/calls.pkl" is current.
1.0.7.post4.dev0+g25ed92a
1.0.7.post4.dev0+g25ed92a
from andes.
I see the issue here.
andes.main.config_logger(stream_level=10)
ss = andes.System()
andes.io.psse.read(ss, '../andes/cases/psid_files/ThreeBusMulti.raw')
andes.io.psse.read_add(ss, '../andes/cases/psid_files/ThreeBus_GENROE.dyr')
ss.PFlow.run()
is missing ss.undill()
before calling andes.io.psse.read
. The working one would be
andes.config_logger(stream_level=10)
ss = andes.System()
# --- Need to load (undill) numerical functions
ss.undill()
andes.io.psse.read(ss, '../andes/cases/psid_files/ThreeBusMulti.raw')
andes.io.psse.read_add(ss, '../andes/cases/psid_files/ThreeBus_GENROE.dyr')
# --- Need to setup ---
ss.setup()
ss.PFlow.run()
Note that andes.io.psse
is a lower-level API. For most cases, use andes.run
or andes.load
instead.
andes.main.config_logger(stream_level=10)
ss = andes.run('../andes/cases/psid_files/ThreeBusMulti.raw', addfile='../andes/cases/psid_files/ThreeBus_GENROE.dyr')
This should load the files, set up, and run the power flow.
from andes.
Related Issues (20)
- variable wt in 'wtdta1.py' is not set up as the type <y> HOT 8
- Parsing issue in dyr for HYGOV HOT 2
- Andes speed calculation HOT 11
- `config_option` fails when the value is a floating number
- Time domain simulation of fault failed for system with renewables HOT 11
- Running PFlow after TDS.run() HOT 1
- TGOV1N setpoint for reactive power (qref0) does not seem to be implemented in contrast to documentation HOT 3
- Data file likely contains references to unsupported models. HOT 2
- 借个楼问下崔老师还招phd嘛? HOT 1
- TDS Convergence is not likely. HOT 4
- Kundur under-damped modes HOT 2
- Documentation not being updated after repository transfer HOT 4
- Problems in the simulation of generator frequency HOT 8
- FLoad error HOT 1
- Bug in selftest HOT 4
- Reloading pycode from a custom `user_pycode_path` fails in Python 3.9 due to missing `importlib.util` import HOT 3
- Bug with dependency kvxopt 1.3.2.0 HOT 2
- Inconsistence between timeseries data shape and variable name with model Output HOT 6
- Parameter updating does not reflect in export file HOT 2
- Typo in matpower tests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from andes.