Пример #1
0
def import_booster_mass_spectra_hdf():

    file_path = Path.cwd() / "tests/tests_data/" / "ESFA_100k_9767-13548_chB.A_re_pc_CoAddAll_mFT.h5"
    
    if file_path.exists:
        #polarity need to be set or read from the file
        booster_reader = ReadHDF_BoosterMassSpectra(file_path)

        booster_reader.start()
        booster_reader.join()
    
    return booster_reader.get_lcms_obj()
Пример #2
0
def test_import_booster_mass_spectra_hdf():

    file_path = Path.cwd(
    ) / "tests/tests_data/ftms/" / "ESFA_100k_9767-13548_chB.A_re_pc_CoAddAll_mFT.h5"

    if file_path.exists():
        #polarity need to be set or read from the file
        polarity = -1

        booster_reader = ReadHDF_BoosterMassSpectra(file_path, polarity)

        booster_reader.start()
        booster_reader.join()