Skip to content
New issue

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

Python module: RuntimeError: Cblock is not a transfer function #198

Open
wperkins opened this issue Feb 5, 2024 · 4 comments · Fixed by #200
Open

Python module: RuntimeError: Cblock is not a transfer function #198

wperkins opened this issue Feb 5, 2024 · 4 comments · Fixed by #200

Comments

@wperkins
Copy link
Member

wperkins commented Feb 5, 2024

With the current develop branch (0edc74e), the Python module unit tests fail with

======================================================================
ERROR: hadrec_test (tests.gridpack_test.GridPACKTester)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/d3g096/Projects/GridPACK-Wind/src/GridPACK/python/src/tests/gridpack_test.py", line 63, in hadrec_test
    hadapp.initializeDynSimu(busfaultlist)
RuntimeError: Cblock is not a transfer function
Check the value of the parameters

-------------------- >> begin captured stdout << ---------------------
NoPrint status: False
NoPrint status: True

--------------------- >> end captured stdout << ----------------------

This appears to be independent of the pybind11 version, which was suspected in #197 (I tried 2 versions).

@wperkins
Copy link
Member Author

wperkins commented Feb 5, 2024

@wperkins
Copy link
Member Author

wperkins commented Feb 5, 2024

Apparently, Github's permalinks don't work for me.

@wperkins
Copy link
Member Author

wperkins commented Feb 7, 2024

This should not have been closed. I put the wrong issue on #200.

@wperkins
Copy link
Member Author

My solution to this is to simply remove the test from the Python API unit tests. In #209, I've commented it out. Eventually, this test should be fixed or the inputs (and hadrec.py script) deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants