Skip to content
Snippets Groups Projects
Commit d73e3ed7 authored by Cain, Payton David's avatar Cain, Payton David Committed by Jeremy M Fee
Browse files

Override .sec file suffix with .raw

parent d964a28b
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,24 @@ class PCDCPFactory(TimeseriesFactory): ...@@ -87,6 +87,24 @@ class PCDCPFactory(TimeseriesFactory):
return stream return stream
def _get_interval_abbreviation(self, interval):
"""Get abbreviation for a data interval.
Used by ``TimeseriesFactory._get_url`` to replace ``%(i)s`` in urlTemplate if interval is not seconds.
Returns "raw" if interval is seconds.
Parameters
----------
interval : {'minute', 'second'}
Returns
-------
abbreviation for ``interval``.
"""
if interval == "second":
return "raw"
return super()._get_interval_abbreviation(interval)
def write_file(self, fh, timeseries, channels): def write_file(self, fh, timeseries, channels):
"""writes timeseries data to the given file object. """writes timeseries data to the given file object.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment