# Path: tests/data.py

# 
# Path: blimpy/plotting/config.py
# MAX_PLT_POINTS      = 65536                  # Max number of points in matplotlib plot
# MAX_IMSHOW_POINTS   = (8192, 4096)           # Max number of points in imshow plot


import blimpy as bl
import numpy as np
from pprint import pprint
from tests.data import voyager_fil, voyager_h5
from blimpy.plotting.config import plt
    a.calibrate_band_pass_N1()

    b.container.populate_freqs()
    b.container.populate_timestamps()
    b.info()
    b.blank_dc(1)
    b.calibrate_band_pass_N1()

    dir_a = dir(a)
    dir_b = dir(b)

    print("Attr/methods in HDF5 but not in FIL:")
    for item in dir_a:
        if item not in dir_b:
            raise ValueError("HDF5 item is not in FIL:" + str(item))

    print("Attr/methods in FIL but not in HDF5:")
    for item in dir_b:
        if item not in dir_a:
            raise ValueError("FIL item is not in HDF5:" + str(item))


def test_plotting_doesnt_cause_exceptions():
    """ Try running the plotting routines. They should not raise expections even without X windows """
    a = bl.Waterfall(voyager_h5)
    b = bl.Waterfall(voyager_fil)

    a.plot_all()
    plt.clf()
    a.plot_kurtosis()

# Path: tests/data.py

# 
# Path: blimpy/plotting/config.py
# MAX_PLT_POINTS      = 65536                  # Max number of points in matplotlib plot
# MAX_IMSHOW_POINTS   = (8192, 4096)           # Max number of points in imshow plot


# Path: tests/test_compare_voyager.py
import blimpy as bl
import numpy as np
from pprint import pprint
from tests.data import voyager_fil, voyager_h5
from blimpy.plotting.config import plt

    a.calibrate_band_pass_N1()

    b.container.populate_freqs()
    b.container.populate_timestamps()
    b.info()
    b.blank_dc(1)
    b.calibrate_band_pass_N1()

    dir_a = dir(a)
    dir_b = dir(b)

    print("Attr/methods in HDF5 but not in FIL:")
    for item in dir_a:
        if item not in dir_b:
            raise ValueError("HDF5 item is not in FIL:" + str(item))

    print("Attr/methods in FIL but not in HDF5:")
    for item in dir_b:
        if item not in dir_a:
            raise ValueError("FIL item is not in HDF5:" + str(item))


def test_plotting_doesnt_cause_exceptions():
    """ Try running the plotting routines. They should not raise expections even without X windows """
    a = bl.Waterfall(voyager_h5)
    b = bl.Waterfall(voyager_fil)

    a.plot_all()
    plt.clf()
    a.plot_kurtosis()

    plt.clf()