# Path: nptdms/utils.py
# def cached_property(func):
#     def get(self):
#     def __init__(self, log, description):
#     def __enter__(self):
#     def __exit__(self, exc_type, exc_val, exc_tb):
# class Timer(object):


import numpy as np
    import pandas as pd
from nptdms.utils import OrderedDict


def from_tdms_file(tdms_file, time_index=False, absolute_time=False, scaled_data=True):
    """
    Converts the TDMS file to a DataFrame. DataFrame columns are named using the TDMS object paths.

    :param tdms_file: TDMS file object to convert.
    :param time_index: Whether to include a time index for the dataframe.
    :param absolute_time: If time_index is true, whether the time index
        values are absolute times or relative to the start time.
    :param scaled_data: By default the scaled data will be used.
        Set to False to use raw unscaled data.
    :return: The full TDMS file data.
    :rtype: pandas.DataFrame
    """


# Path: nptdms/utils.py
# def cached_property(func):
#     def get(self):
#     def __init__(self, log, description):
#     def __enter__(self):
#     def __exit__(self, exc_type, exc_val, exc_tb):
# class Timer(object):


# Path: nptdms/export/pandas_export.py
import numpy as np
    import pandas as pd
from nptdms.utils import OrderedDict



def from_tdms_file(tdms_file, time_index=False, absolute_time=False, scaled_data=True):
    """
    Converts the TDMS file to a DataFrame. DataFrame columns are named using the TDMS object paths.

    :param tdms_file: TDMS file object to convert.
    :param time_index: Whether to include a time index for the dataframe.
    :param absolute_time: If time_index is true, whether the time index
        values are absolute times or relative to the start time.
    :param scaled_data: By default the scaled data will be used.
        Set to False to use raw unscaled data.
    :return: The full TDMS file data.
    :rtype: pandas.DataFrame
    """


    channels_to_export = OrderedDict()