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

It doesn't work #40

Open
keithbriggs opened this issue Dec 13, 2023 · 0 comments
Open

It doesn't work #40

keithbriggs opened this issue Dec 13, 2023 · 0 comments

Comments

@keithbriggs
Copy link

Using the first example on the webpage:

Traceback (most recent call last):
  File "try_snapvx_00.py", line 25, in <module>
    gvx.Solve() # Solve the problem
  File "/home/kbriggs/.local/lib/python3.8/site-packages/snapvx.py", line 150, in Solve
    self.__SolveADMM(NumProcessors, Rho, MaxIters, EpsAbs, EpsRel,
  File "/home/kbriggs/.local/lib/python3.8/site-packages/snapvx.py", line 469, in __SolveADMM
    self.value = self.GetTotalProblemValue()
  File "/home/kbriggs/.local/lib/python3.8/site-packages/snapvx.py", line 479, in GetTotalProblemValue
    var.value = self.GetNodeValue(nid, varName)
  File "/home/kbriggs/.local/lib/python3.8/site-packages/snapvx.py", line 524, in GetNodeValue
    return value[offset:(offset + temp)]
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant