Skip to content
Snippets Groups Projects
Commit b3d863ad authored by Samson Leong's avatar Samson Leong :stuck_out_tongue: Committed by Colm Talbot
Browse files

Return resample strain directly.

parent 3ff8798d
No related branches found
No related tags found
No related merge requests found
......@@ -423,8 +423,7 @@ def read_frame_file(file_name, start_time, end_time, resample=None, channel=None
if loaded:
if resample and (strain.sample_rate.value != resample):
strain.resample(resample)
return strain
return strain.resample(resample)
else:
logger.warning('No data loaded.')
return None
......
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