# Path: apasvo/utils/formats/rawfile.py
# class RawFile(object):
# class BinFile(RawFile):
# class TextFile(RawFile):
#     def __init__(self):
#     def read(self):
#     def read_in_blocks(self, block_size):
#     def write(self, array):
#     def __init__(self, filename, dtype='float64', byteorder='native'):
#     def read(self, **kwargs):
#     def read_in_blocks(self, block_size=1024):
#     def write(self, array, **kwargs):
#     def __init__(self, filename, dtype='float64', byteorder='native'):
#     def read(self, **kwargs):
#     def read_in_blocks(self, block_size=1024):
#     def write(self, array, **kwargs):
# def get_file_handler(filename, fmt='', dtype='float64', byteorder='native', **kwargs):


import numpy as np
from scipy import signal
from apasvo.utils.formats import rawfile

    def __init__(self, bfirls=None, fs=50.0, P_noise_db=0.0,
                 low_period=50.0, high_period=10.0, bandwidth=4.0,
                 overlap=1.0, f_low=2.0, f_high=18.0,
                 low_amp=0.2, high_amp=0.1, **kwargs):
        super(EarthquakeGenerator, self).__init__()
        self.bfirls = bfirls
        self.fs = fs
        self.P_noise_db = P_noise_db
        self.low_period = low_period
        self.high_period = high_period
        self.bandwidth = bandwidth
        self.overlap = overlap
        self.f_low = f_low
        self.f_high = f_high
        self.low_amp = low_amp
        self.high_amp = high_amp

    def load_noise_coefficients(self, fileobj, dtype='float64',
                                byteorder='native'):
        """Loads 'bfirls' attribute from a given file.

        File must be on binary or plain text format.

        Args:
            fileobj: A binary or text file object containing a list of numeric
                coefficients.
            dtype: Data-type of the numeric data stored into the file.
            byteorder: Byte-order of the numeric data stored into the file.
        """

# Path: apasvo/utils/formats/rawfile.py
# class RawFile(object):
# class BinFile(RawFile):
# class TextFile(RawFile):
#     def __init__(self):
#     def read(self):
#     def read_in_blocks(self, block_size):
#     def write(self, array):
#     def __init__(self, filename, dtype='float64', byteorder='native'):
#     def read(self, **kwargs):
#     def read_in_blocks(self, block_size=1024):
#     def write(self, array, **kwargs):
#     def __init__(self, filename, dtype='float64', byteorder='native'):
#     def read(self, **kwargs):
#     def read_in_blocks(self, block_size=1024):
#     def write(self, array, **kwargs):
# def get_file_handler(filename, fmt='', dtype='float64', byteorder='native', **kwargs):


# Path: apasvo/picking/eqgenerator.py
import numpy as np
from scipy import signal
from apasvo.utils.formats import rawfile


    def __init__(self, bfirls=None, fs=50.0, P_noise_db=0.0,
                 low_period=50.0, high_period=10.0, bandwidth=4.0,
                 overlap=1.0, f_low=2.0, f_high=18.0,
                 low_amp=0.2, high_amp=0.1, **kwargs):
        super(EarthquakeGenerator, self).__init__()
        self.bfirls = bfirls
        self.fs = fs
        self.P_noise_db = P_noise_db
        self.low_period = low_period
        self.high_period = high_period
        self.bandwidth = bandwidth
        self.overlap = overlap
        self.f_low = f_low
        self.f_high = f_high
        self.low_amp = low_amp
        self.high_amp = high_amp

    def load_noise_coefficients(self, fileobj, dtype='float64',
                                byteorder='native'):
        """Loads 'bfirls' attribute from a given file.

        File must be on binary or plain text format.

        Args:
            fileobj: A binary or text file object containing a list of numeric
                coefficients.
            dtype: Data-type of the numeric data stored into the file.
            byteorder: Byte-order of the numeric data stored into the file.
        """

        fhandler = rawfile.get_file_handler(fileobj, dtype=dtype,