CMSM-VCU / zoo

Peridynamics data visualization tool
MIT License
0 stars 0 forks source link

Contour data can be overwritten and lost until file is reopened. #12

Closed rileychall closed 2 years ago

rileychall commented 2 years ago

After some sequence of operations, a dataset at one timestep will be overwritten with either zeroes or another dataset. It remains this way until the file is reopened.

Note: This does not affect the contents of the actual file.

rileychall commented 2 years ago

Actually, I think the dataset is being completely removed from the object. At that point, switching to it with the dataset dropdown does nothing, with the current dataset remaining.

rileychall commented 2 years ago

Steps to reproduce:

  1. Open file

  2. Select dataset A

  3. Go to time step N

  4. Select dataset B

  5. Go to time step M

  6. Select dataset A

    Glyph coloring is now broken. Color map uses dataset B limits, but all text correctly shows dataset A limits.

    Not 100% reproduction rate. Possibly only occurs when dataset A limits are smaller than dataset B limits.

  7. Go to time step N

    Dataset A at time step N has been overwritten by B at time step N

rileychall commented 2 years ago

Way easier reproduction:

  1. Open file (Starts with dataset A selected)
  2. Select dataset B
  3. Select dataset A
rileychall commented 2 years ago

This issue is fixed in version 0.5.1. The cause was a conflict between VTK setting the scalar array by reference with SetActiveScalars() and PyVista setting the scalar array by value with update_scalars().