Skip to main content

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