Source code for spike.File.BrukerMS

#!/usr/bin/env python
# encoding: utf-8

"""
Utility to import Bruker MS files

A wrapper around Solarix and Apex modules


Created by MAD on 03-2019.

Copyright (c) 2019 IGBMC. All rights reserved.
"""

from ..File import Apex, Solarix


#-----------------------------------------
[docs]def Import_1D(*arg, **kword): """ Entry point to import 1D spectra It returns a FTICRData It writes a HDF5 file if an outfile is mentionned """ try: return Solarix.Import_1D(*arg, **kword) except: return Apex.Import_1D(*arg, **kword)
#-----------------------------------------
[docs]def Import_2D(*arg, **kword): """ Entry point to import 2D spectra It returns a FTICRData It writes a HDF5 file if an outfile is mentionned compression (compress=True) is efficient, but takes more time. """ try: return Solarix.Import_2D(*arg, **kword) except: return Apex.Import_2D(*arg, **kword)