time_values
All available time values on the underlying reader, when it is time-aware (for example, PVDReader).
Proxies TimeReader.time_values. Returns None if the reader is not time-aware.
Type
Sequence[float] | None
Example
from pyemsi import Plotter, examples
file_path = examples.transient_path()
p = Plotter(file_path)
print(p.time_values) # [0.01, 0.02, 0.03, ..., 0.1]
print(p.number_time_points) # 10
# Use a specific value to activate a time step
p.set_active_time_value(p.time_values[-1])
See also
number_time_points— total count of available time stepsactive_time_value— read the currently active time valueset_active_time_value()— activate a time step by valueset_active_time_point()— activate a time step by indextime_point_value()— convert a time step index to its time value