fix(docs/comments): rename refs to 'event files' to reflect their timestamp extenion names.
This commit is contained in:
+9
-7
@@ -115,7 +115,7 @@ def _get_db() -> SeismoDb:
|
||||
|
||||
def _get_store() -> WaveformStore:
|
||||
"""
|
||||
Persistent .G10 + A5-sidecar store, rooted at <db_dir>/waveforms/.
|
||||
Persistent event-file + A5-sidecar store, rooted at <db_dir>/waveforms/.
|
||||
Mirrors the layout used by bridges/ach_server.py so files saved by ACH
|
||||
ingestion and by live SFM downloads share one canonical location.
|
||||
"""
|
||||
@@ -1480,10 +1480,12 @@ def db_set_false_trigger(
|
||||
@app.get("/db/events/{event_id}/blastware_file")
|
||||
def db_event_blastware_file(event_id: str) -> FileResponse:
|
||||
"""
|
||||
Return the Blastware-format waveform file (.G10/.W/.H/etc.) for a
|
||||
previously-ingested event. 404 if the event is unknown or has no
|
||||
.G10 in the store (events ingested before the store was wired will
|
||||
show this — re-download via the live endpoint to populate).
|
||||
Return the Blastware-format event file for a previously-ingested
|
||||
event. Filename extension is per-event (timestamp-encoded
|
||||
`AB0T` for ACH downloads, 3-char `AB0` for direct downloads).
|
||||
404 if the event is unknown or has no event file in the store
|
||||
(events ingested before the store was wired will show this —
|
||||
re-download via the live endpoint to populate).
|
||||
"""
|
||||
row = _get_db().get_event(event_id)
|
||||
if row is None:
|
||||
@@ -1584,8 +1586,8 @@ def db_unit_waveforms_zip(
|
||||
limit: int = Query(5000, description="Hard cap on events bundled (default 5000)"),
|
||||
) -> StreamingResponse:
|
||||
"""
|
||||
Stream a ZIP of all .G10/.W files for a serial in the optional date range.
|
||||
Events without a stored Blastware file are silently skipped.
|
||||
Stream a ZIP of all event files for a serial in the optional date range.
|
||||
Events without a stored event file are silently skipped.
|
||||
"""
|
||||
import io
|
||||
import zipfile
|
||||
|
||||
Reference in New Issue
Block a user