find_best_frametype#
- gwpy.io.datafind.find_best_frametype(
- channel: str | Channel,
- start: SupportsToGps,
- end: SupportsToGps,
- *,
- allow_tape: bool = True,
- **kwargs,
- gwpy.io.datafind.find_best_frametype(
- channel: Iterable[ChannelLike],
- start: SupportsToGps,
- end: SupportsToGps,
- *,
- allow_tape: bool = True,
- **kwargs,
Intelligently select the best frametype from which to read this channel.
- Parameters:
- channel
str,Channel the channel to be found
- start
LIGOTimeGPS,float,str GPS start time of period of interest, any input parseable by
to_gpsis fine- end
LIGOTimeGPS,float,str GPS end time of period of interest, any input parseable by
to_gpsis fine- allow_tape
bool, optional do not test types whose frame files are stored on tape (not on spinning disk)
- kwargs
Other keyword arguments are passed to
find_frametype.
- channel
- Returns:
- frametype
str the best matching frametype for the
channelin the[start, end)interval
- frametype
- Raises:
ValueErrorIf no valid frametypes are found.
See also
find_frametypeFor details of how available frametypes are matched.
Examples
>>> from gwpy.io.datafind import find_best_frametype >>> find_best_frametype('L1:GDS-CALIB_STRAIN', 1126259460, 1126259464) 'L1_HOFT_C00'