Esempio n. 1
0
 def run(self):
     rx = SFMdaRecordingExtractor(
         dataset_directory=self.recording_directory, download=True)
     rx2 = bandpass_filter(recording=rx,
                           freq_min=300,
                           freq_max=6000,
                           freq_wid=1000)
     if not mdaio.writemda32(rx2.get_traces(), self.timeseries_out):
         raise Exception('Unable to write output file.')
Esempio n. 2
0
def _mda32_to_base64(X):
    f = io.BytesIO()
    mdaio.writemda32(X, f)
    return base64.b64encode(f.getvalue()).decode('utf-8')