Skip to main content
Ctrl+K
GWpy 4.0.1 - Home GWpy 4.0.1 - Home
  • Getting Started
  • User Guide
  • API Reference
  • Examples
  • Project Info
  • GitLab
  • Getting Started
  • User Guide
  • API Reference
  • Examples
  • Project Info
  • GitLab

Section Navigation

GWpy API Reference

  • Astrophysics Utilities (gwpy.astro)
    • burst_range
    • burst_range_spectrum
    • inspiral_range
    • inspiral_range_psd
    • range_spectrogram
    • range_timeseries
    • sensemon_range
    • sensemon_range_psd
  • Detector Utilities (gwpy.detector)
    • get_timezone
    • get_timezone_offset
    • Channel
    • ChannelList
  • Frequency Series (gwpy.frequencyseries)
    • FrequencySeries
    • SpectralVariance
  • Input/Output (gwpy.io)
    • Cache manipulation (gwpy.io.cache)
      • cache_segments
      • file_segment
      • filename_metadata
      • find_contiguous
      • flatten
      • is_cache
      • is_cache_entry
      • read_cache
      • read_cache_entry
      • sieve
      • write_cache
    • I/O Utilities (gwpy.io.utils)
      • file_list
      • file_path
      • gopen
      • with_open
      • FILE_LIKE
      • FileLike
      • NamedFileLike
      • NamedReadable
      • NamedWritable
      • Readable
      • Writable
    • Data discovery (gwpy.io.datafind)
      • find_best_frametype
      • find_frametype
      • find_latest
      • find_types
      • find_urls
      • on_tape
    • GWF file I/O (gwpy.io.gwf)
      • channel_exists
      • data_segments
      • get_backend
      • get_backend_function
      • get_channel_names
      • get_channel_type
      • identify_gwf
      • import_backend
      • iter_channel_names
      • num_channels
      • BACKENDS
    • HDF5 Utilities (gwpy.io.hdf5)
      • create_dataset
      • find_dataset
      • identify_hdf5
      • open_hdf5
      • with_read_hdf5
      • with_write_hdf5
    • LIGO_LW XML I/O (gwpy.io.ligolw)
      • build_content_handler
      • default_content_handler
      • get_filtering_contenthandler
      • get_ligolw_element
      • get_partial_contenthandler
      • is_ligolw
      • iter_tables
      • list_tables
      • open_xmldoc
      • read_ligolw
      • read_table
      • to_table_type
      • write_tables
      • write_tables_to_document
    • ROOT File I/O (gwpy.io.root)
      • identify_root
    • Kerberos (gwpy.io.kerberos)
      • kinit
    • SciTokens (gwpy.io.scitokens)
      • add_http_authorization_header
      • find_token
      • get_scitoken
    • NDS2 (gwpy.io.nds2)
      • auth_connect
      • connect
      • find_channels
      • get_availability
      • host_resolution_order
      • minute_trend_times
      • parse_nds_env
      • NDSWarning
      • Nds2ChannelType
      • Nds2DataType
    • Pelican (gwpy.io.pelican)
      • download_file
      • is_pelican_url
      • open_remote_file
      • query_director
      • resolve_pelican_url
    • Remote URLs (gwpy.io.remote)
      • download_file
      • is_remote
      • open_remote_file
    • Unified I/O Registry (gwpy.io.registry)
      • identify_factory
      • inherit_unified_io
      • GetExceptionGroup
      • UnifiedFetch
      • UnifiedFetchRegistry
      • UnifiedGet
      • UnifiedGetRegistry
      • UnifiedIORegistry
      • UnifiedRead
      • UnifiedWrite
      • default_registry
  • Logging Utilities (gwpy.log)
    • get_default_level
    • init_logger
    • DEFAULT_LOG_DATEFMT
    • DEFAULT_LOG_FORMAT
  • Plotting (gwpy.plot)
    • Axes
    • BodePlot
    • Plot
    • SegmentAxes
  • Segments (gwpy.segments)
    • DataQualityDict
    • DataQualityFlag
    • Segment
    • SegmentList
    • SegmentListDict
  • Signal Processing (gwpy.signal)
    • Filter Design (gwpy.signal.filter_design)
      • bandpass
      • concatenate_zpks
      • fir_from_transfer
      • frequency_response
      • highpass
      • is_sos
      • is_zpk
      • lowpass
      • notch
      • parse_filter
      • prepare_analog_filter
      • prepare_digital_filter
    • Window Functions (gwpy.signal.window)
      • canonical_name
      • get_window
      • planck
      • recommended_overlap
    • Spectral Methods (gwpy.signal.spectral)
      • average_spectrogram
      • bartlett
      • coherence
      • csd
      • get_default_fft_api
      • get_method
      • median
      • psd
      • rayleigh
      • register_method
      • spectrogram
      • welch
    • Q-Transform (gwpy.signal.qtransform)
      • q_scan
      • QGram
      • QPlane
      • QTile
      • QTiling
  • Spectrograms (gwpy.spectrogram)
    • Spectrogram
    • SpectrogramList
  • Tables (gwpy.table)
    • EventTable
    • GravitySpyTable
  • Time Utilities (gwpy.time)
    • from_gps
    • tconvert
    • to_gps
    • LIGOTimeGPS
    • LIGOTimeGPSLike
  • Time Series (gwpy.timeseries)
    • Bits
    • StateTimeSeries
    • StateTimeSeriesDict
    • StateVector
    • StateVectorDict
    • StateVectorList
    • TimeSeries
    • TimeSeriesBase
    • TimeSeriesBaseDict
    • TimeSeriesBaseList
    • TimeSeriesDict
    • TimeSeriesList
  • Array types (gwpy.types)
    • Array
    • Array2D
    • Index
    • Series
  • Miscellanous Utilities (gwpy.utils)
    • if_not_none
    • round_to_power
    • unique
    • Decorator Utilities (gwpy.utils.decorators)
      • deprecated_function
      • return_as
      • deprecated_property
    • LAL Utilities (gwpy.utils.lal)
      • find_typed_function
      • from_lal_type
      • from_lal_unit
      • to_lal_ligotimegps
      • to_lal_type_str
      • to_lal_unit
      • LALFFTPlanType
      • LALFrequencySeriesType
      • LALTimeSeriesType
      • LALVectorType
      • LALWindowType
      • LAL_DETECTORS
      • LAL_NUMPY_FROM_TYPE_STR
      • LAL_TYPE_FROM_NUMPY
      • LAL_TYPE_FROM_STR
      • LAL_TYPE_REGEX
      • LAL_TYPE_STR
      • LAL_TYPE_STR_FROM_NUMPY
  • API Reference
  • Time Utilities (gwpy.time)
  • LIGOTimeGPSLike

LIGOTimeGPSLike#

class gwpy.time.LIGOTimeGPSLike(new: float | LIGOTimeGPS | str)[source]#

Bases: Protocol

Protocol for types that are implementations of LIGOTimeGPS.

This is used for type hinting functions that can accept lal.LIGOTimeGPS, or ligotimegps.LIGOTimeGPS, or any other implementation of the LIGOTimeGPS standard.

This can also be used at runtime with isinstance to check if an object is a LIGOTimeGPS-like object, but cannot be used with issubclass.

previous

LIGOTimeGPS

next

Time Series (gwpy.timeseries)

On this page
  • LIGOTimeGPSLike
Edit on GitLab

© Copyright 2026 Cardiff University.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.16.1.