Skip to content

It doesn't work #40

@keithbriggs

Description

@keithbriggs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions