# Path: nptdms/types.py
# def tds_data_type(enum_value, np_type, set_np_type=True):
#     def decorator(cls):
#     def __init__(self):
#     def __eq__(self, other):
#     def __repr__(self):
#     def read(cls, file, endianness="<"):
#     def read_values(cls, file, number_values, endianness="<"):
#     def __init__(self, value):
#     def __init__(self, value):
#     def read(cls, file, endianness="<"):
#     def from_bytes(cls, byte_array, endianness="<"):
#     def __init__(self, value):
#     def read(file, endianness="<"):
#     def read_values(cls, file, number_values, endianness="<"):
#     def __init__(self, value):
#     def read(cls, file, endianness="<"):
#     def __init__(self, value):
#     def read(cls, file, endianness="<"):
#     def from_bytes(cls, byte_array, endianness="<"):
# class TdmsType(object):
# class Bytes(TdmsType):
# class StructType(TdmsType):
# class Void(TdmsType):
# class Int8(StructType):
# class Int16(StructType):
# class Int32(StructType):
# class Int64(StructType):
# class Uint8(StructType):
# class Uint16(StructType):
# class Uint32(StructType):
# class Uint64(StructType):
# class SingleFloat(StructType):
# class DoubleFloat(StructType):
# class ExtendedFloat(TdmsType):
# class SingleFloatWithUnit(StructType):
# class DoubleFloatWithUnit(StructType):
# class ExtendedFloatWithUnit(TdmsType):
# class String(TdmsType):
# class Boolean(StructType):
# class TimeStamp(TdmsType):
# class ComplexSingleFloat(TdmsType):
# class ComplexDoubleFloat(TdmsType):
# class DaqMxRawData(TdmsType):
# 
# Path: nptdms/scaling.py
# def get_scaling(channel_properties, group_properties, file_properties):
#     """ Get scaling for a channel from either the channel itself,
#         its group, or the whole TDMS file
#     """
#     scalings = (
#         _get_channel_scaling(p)
#         for p in [channel_properties, group_properties, file_properties])
#     try:
#         return next(s for s in scalings if s is not None)
#     except StopIteration:
#         return None


import numpy as np
import pytest
from nptdms import types
from nptdms.scaling import get_scaling
"""Test scaling data"""




def test_unsupported_scaling_type():
    """Raw data is returned unscaled when the scaling type is unsupported.
    """

    properties = {
        "NI_Number_Of_Scales": 1,
        "NI_Scale[0]_Scale_Type": "UnknownScaling"
    }

# Path: nptdms/types.py
# def tds_data_type(enum_value, np_type, set_np_type=True):
#     def decorator(cls):
#     def __init__(self):
#     def __eq__(self, other):
#     def __repr__(self):
#     def read(cls, file, endianness="<"):
#     def read_values(cls, file, number_values, endianness="<"):
#     def __init__(self, value):
#     def __init__(self, value):
#     def read(cls, file, endianness="<"):
#     def from_bytes(cls, byte_array, endianness="<"):
#     def __init__(self, value):
#     def read(file, endianness="<"):
#     def read_values(cls, file, number_values, endianness="<"):
#     def __init__(self, value):
#     def read(cls, file, endianness="<"):
#     def __init__(self, value):
#     def read(cls, file, endianness="<"):
#     def from_bytes(cls, byte_array, endianness="<"):
# class TdmsType(object):
# class Bytes(TdmsType):
# class StructType(TdmsType):
# class Void(TdmsType):
# class Int8(StructType):
# class Int16(StructType):
# class Int32(StructType):
# class Int64(StructType):
# class Uint8(StructType):
# class Uint16(StructType):
# class Uint32(StructType):
# class Uint64(StructType):
# class SingleFloat(StructType):
# class DoubleFloat(StructType):
# class ExtendedFloat(TdmsType):
# class SingleFloatWithUnit(StructType):
# class DoubleFloatWithUnit(StructType):
# class ExtendedFloatWithUnit(TdmsType):
# class String(TdmsType):
# class Boolean(StructType):
# class TimeStamp(TdmsType):
# class ComplexSingleFloat(TdmsType):
# class ComplexDoubleFloat(TdmsType):
# class DaqMxRawData(TdmsType):
# 
# Path: nptdms/scaling.py
# def get_scaling(channel_properties, group_properties, file_properties):
#     """ Get scaling for a channel from either the channel itself,
#         its group, or the whole TDMS file
#     """
#     scalings = (
#         _get_channel_scaling(p)
#         for p in [channel_properties, group_properties, file_properties])
#     try:
#         return next(s for s in scalings if s is not None)
#     except StopIteration:
#         return None


# Path: nptdms/test/test_scaling.py
import numpy as np
import pytest
from nptdms import types
from nptdms.scaling import get_scaling

"""Test scaling data"""




def test_unsupported_scaling_type():
    """Raw data is returned unscaled when the scaling type is unsupported.
    """

    properties = {
        "NI_Number_Of_Scales": 1,
        "NI_Scale[0]_Scale_Type": "UnknownScaling"
    }

    scaling = get_scaling(properties, {}, {})