You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pyvista _Brain init too stringent about size parameter #7426
I'm hitting the error '"size" parameter must be int or tuple.' I'm generating lots of similar figures, so I store several project-level parameters (including brain plotting kwargs like figure size) in an external YAML file, and pyYAML's "safe loader" doesn't support tuples, only lists. Instead of checking isinstance(size, tuple) maybe we could check if it is length-2, and then convert it to tuple? Or do it however the mayavi code did it; it works to pass size=[1200, 1200] with the mayavi backend.
@GuillaumeFavelier since you're the PyVista master I wanted to run this by you before just making the change... but I'm happy to do it myself if you're OK with it and you're too busy.
Activity
GuillaumeFavelier commentedon Mar 12, 2020
Good catch @drammock, even just for compatibility with
mayaviI thinklistshould be supported. Feel free to take care of it if you want 👍