Skip to content

Problem Vectors in pointsToVTK: Solved  #6

Description

@tobetz

I had trouble saving vector data in the pointsToVTK function.
Using:
pointsToVTK("./points", x, y, z, data = {"v" : (vx,vy,vz)})

throws a dimension error. This does not happen in the other function, hence normally providing a tuple is ok for saving vectors.

After digging a bit I realized that in hl.py, line 241 the tuple is converted to a nparray, which finally results in an error due to the dimension.

Simple fix is to comment the line 242:
data = __convertDictListToArrays(data)

Then it works fine, also for non-vectorial data.

Is there a reason for the conversion? If not, maybe you want to consider dropping it in a further version.

best,
Timo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions