# Path: tests/data.py



import blimpy as bl
import pytest
from tests.data import voyager_fil, voyager_h5, here
    from blimpy.io.file_wrapper import open_file
    from blimpy.io.file_wrapper import open_file
    from blimpy.io.file_wrapper import open_file

    # check all if branches
    h5r.populate_timestamps(update_header=False)
    h5r.populate_timestamps(update_header=True)
  
    with pytest.raises(ValueError):
        h5r.read_blob((300, 300, 300, 300), -1)        

    # testing to make sure all internal functions are already used
    h5r._setup_selection_range(
        f_start=3, f_stop=4, t_stop=3, t_start=4
    )
    h5r._setup_selection_range()    

    h5r._init_empty_selection()
    
    # perform reading again and we make sure that
    # the user-facing functions survive

    h5r.populate_freqs()
    
    # just arbitrary values
    h5r.calc_n_blobs(300)
    h5r.read_blob((300, 300, 300, 300))

    h5r.calc_n_coarse_chan()
    h5r.calc_n_coarse_chan(1)
    # we have at least 2 if branches that we are not exploring

def test_file_wrapper_open_fil_file():

# Path: tests/data.py



# Path: tests/test_file_wrapper.py
import blimpy as bl
import pytest
from tests.data import voyager_fil, voyager_h5, here
    from blimpy.io.file_wrapper import open_file
    from blimpy.io.file_wrapper import open_file
    from blimpy.io.file_wrapper import open_file


    # check all if branches
    h5r.populate_timestamps(update_header=False)
    h5r.populate_timestamps(update_header=True)
  
    with pytest.raises(ValueError):
        h5r.read_blob((300, 300, 300, 300), -1)        

    # testing to make sure all internal functions are already used
    h5r._setup_selection_range(
        f_start=3, f_stop=4, t_stop=3, t_start=4
    )
    h5r._setup_selection_range()    

    h5r._init_empty_selection()
    
    # perform reading again and we make sure that
    # the user-facing functions survive

    h5r.populate_freqs()
    
    # just arbitrary values
    h5r.calc_n_blobs(300)
    h5r.read_blob((300, 300, 300, 300))

    h5r.calc_n_coarse_chan()
    h5r.calc_n_coarse_chan(1)
    # we have at least 2 if branches that we are not exploring

def test_file_wrapper_open_fil_file():

    filr = open_file(voyager_fil)