Skip to content

Is there a way to resolve the issue that occurs when the function setpattern is used? #90

Description

@LittleBrize

After using the function of 'addpattern' to add a new time pattern into the network, I want to input the values all at once by using the function of 'setpattern'. The codes are listed below.
for i in range(7):
patid = patternids[i]
en.addpattern(inp_proj, id=patid)
en.setpattern(inp_proj, i+2, p0values, p0lens)

There is error poping out, which is listed below.
''TypeError: in method 'setpattern', argument 3 of type 'double *'''

The type of p0values is 'list'. How can I fix it?

Activity

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

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