select_time_range#

caput.containers.tod.TODReader.select_time_range(start_time: int | None = None, stop_time: int | None = None) None[source]#

Sets time_sel to include a time range.

The times from the samples selected will have bin centre timestamps that are bracketed by the given start_time and stop_time.

Parameter time should be in the same format as TOData.time, and mush be comparable through standard comparison operator (<, >=, etc.). Conversion using TOData.convert_time() is attempted.

Parameters:
start_timeint | None, optional

Affects the first element of time_sel. Default leaves it unchanged.

stop_timeint | None, optional

Affects the second element of time_sel. Default leaves it unchanged.