import nmrpy.data_objects
from .version import __version__
from nmrpy.tests import NMRPyTest as test


import nmrpy.data_objects
from .version import __version__
from nmrpy.tests import NMRPyTest as test

def from_path(fid_path='.', file_format=None):
    """
    Instantiate a new :class:`~nmrpy.data_objects.FidArray` object from a .fid directory.

    :keyword fid_path: filepath to .fid directory

    :keyword file_format: 'varian' or 'bruker', usually unnecessary

    """
    return nmrpy.data_objects.FidArray.from_path(fid_path, file_format)


simplify instantiation of FidArray by calling nmrpy.from_path() directly