Giter VIP home page Giter VIP logo

Comments (9)

cuihantao avatar cuihantao commented on June 22, 2024

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.

jd-lara avatar jd-lara commented on June 22, 2024

@cuihantao I have a clone of the master branch Is that the latest?

from andes.

cuihantao avatar cuihantao commented on June 22, 2024

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.

jd-lara avatar jd-lara commented on June 22, 2024

@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.

cuihantao avatar cuihantao commented on June 22, 2024

Try removing the file '~/.andes/calls.pkl' and running 'andes selftest'.

from andes.

jd-lara avatar jd-lara commented on June 22, 2024

same result.

from andes.

cuihantao avatar cuihantao commented on June 22, 2024

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.

jd-lara avatar jd-lara commented on June 22, 2024

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.

cuihantao avatar cuihantao commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.