Skip to content

[BUG] Can't modify t_array #604

Open
@djps

Description

@djps

Describe the bug
It is not possible to set t_array using the setter, as the condition which checks whether it is the string auto doesn't work if an array is provided.

To Reproduce
Things like

temp = np.delete(self.kgrid.t_array, -1, axis=1)
kgrid.t_array = temp 

throw errors:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Expected behavior
Expect the kgrid.t_array to change

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions