Skip to content
Snippets Groups Projects
Commit 4bcdafad authored by Jeremy M Fee's avatar Jeremy M Fee Committed by GitHub
Browse files

Merge pull request #143 from erigler-usgs/TimeseriesFactory_pad_urlInterval

Pad to urlInterval in put_timeseries()
parents f398e16c 06d757f7
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,13 @@ class TimeseriesFactory(object):
except NotImplementedError:
# factory only supports output
pass
# pad with NaN's out to urlInterval (like get_timeseries())
url_data.trim(
starttime=urlInterval['start'],
endtime=(urlInterval['end'] - delta),
nearest_sample=False,
pad=True,
fill_value=numpy.nan)
with open(url_file, 'wb') as fh:
try:
self.write_file(fh, url_data, channels)
......
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