sampsapursiainen / zeffiro_interface

Interface for using finite elements in inverse problems with complex domains
GNU General Public License v3.0
23 stars 15 forks source link

Frame limiter for time series visualization #238

Open JoonasJL opened 1 year ago

JoonasJL commented 1 year ago

Description

When one visualizes time series reconstruction, the displaying speed depends only on the computational abilities of the computer and the number of triangles to be drawn. That's why it would be really nice to have a field in the Mesh visualization tool, where one can set the time length each frame is displayed, this number will be essentially fed to the pause function.

Steps to execute

  1. add a new string field in the Mesh visualization tool with an appropriate description 2.1. Modify visualization functions in such a way that it takes this new field in as a parameter and adds pauses with this parameter as the input 2.2. or just give the value as input to the pause function, e.g., pause(str2num(zef.MeshToolPauseLength))

Expected behavior

SeSodesa commented 11 months ago

Having done very little work with time series data using Zeffiro, I wonder what the relevant functions are? I could probably figure it out by looking at the callbacks of the tool that is used to do the time series wrangling, but is there a Time series tool in Zeffiro, or should I be looking at other tools for the functionality?

Edit: or does this mainly concern the Figure tool?

JoonasJL commented 10 months ago

Having done very little work with time series data using Zeffiro, I wonder what the relevant functions are? I could probably figure it out by looking at the callbacks of the tool that is used to do the time series wrangling, but is there a Time series tool in Zeffiro, or should I be looking at other tools for the functionality?

Edit: or does this mainly concern the Figure tool?

The functions are the same as in the case of point (epoch) reconstruction: zef_plot_volume (zef_visualize_volume) and zef_plot_mesh (zef_visualize_surfaces). I am not sure, if those functions use the length of the reconstruction cell or invtime(1,2,3) as indicators for time serial reconstruction. zef_plot_volume seems to use inv_times for the time string and length of the cell, zef.frame_star, zef_frame_stop, and zef_frame_step (adjusted via Mesh visualization tool) to define the visualized reconstruction "frames". The visualization is inside a for-loop and the "frame index" is always denoted as f_ind.