Source code for signal_dataset.storage.staging.passthrough
"""Staging for locations the native reader can already open.Local paths and ``gs://`` URIs are handed to ArrayRecord unchanged. This alsoowns the fragment convention that pins a GCS generation, so that the literallives in exactly one place rather than at every reader construction."""from__future__importannotationsfromcollections.abcimportIteratorfromcontextlibimportcontextmanagerfromsignal_dataset.storage.staging.contractsimportShardStagingArea
[docs]classPassthroughStaging(ShardStagingArea):"""Yields the URI itself, pinning a generation when one is given."""