Skip to content

Maxpolydeg related issue #166

@zieranna

Description

@zieranna

I have recently updated the version of GLMsingle and since then my script as well as the example script are getting the following error:

make_polynomial_matrix polynomials = np.zeros((n, len(degrees)))
TypeError: object of type 'numpy.int64' has no len()

I am not giving the parameters of the maxpolydeg myself, but they are produced by the toolbox.
I assume, something in regards of the opt['maxpolydeg'] function has changed, but I have not figured out what exactly

Previously, the function resulted in this:
opt['maxpolydeg'] = [array([0, 1, 2, 3]), array([0, 1, 2, 3]), array([0, 1, 2, 3]), array([0, 1, 2, 3]), array([0, 1, 2, 3]), array([0, 1, 2, 3]), array([0, 1, 2, 3]), array([0, 1, 2, 3]), array([0, 1, 2, 3]), array([0, 1, 2, 3]), array([0, 1, 2, 3]), array([0, 1, 2, 3])]

now it produces this:
opt['maxpolydeg'] = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]

Is this a bug or do I have to look out for a specific python/ numpy version or else?

Best, Anna

Metadata

Metadata

Assignees

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