Get the time duration from mne object

Hi,

After putting getting the mne object like below

<Raw | sample_audvis_raw.fif, 376 x 166800 (277.7 s), ~3.2 MB, data not loaded>
or

<RawArray | 24 x 2494 (5.0 s), ~491 kB, data loaded>>

Is it possible to get the (277.7s) or (5.0s)?

Thanks

Any help is welcomed.

I have seen it.

._last_time in the mne object gives that time.

I recommend not using a private attribute. Instead, all time points are available in raw.times, so raw.times[-1] gives you the last time point.

1 Like

okay thanks. noted

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.