# Path: hftools/utils.py
# def is_numlike(a):
#     if isinstance(a, np.ndarray):
#         return np.issubdtype(a.dtype, np.number)
#     else:
#         return np.issubdtype(np.array(a).dtype, np.number)
# 
# def is_integer(a):
#     if isinstance(a, np.ndarray):
#         return a.dtype.kind == "i"
#     else:
#         return isinstance(a, int)
# 
# def deprecate(msg):
#     warnings.warn(msg, HFToolsDeprecationWarning)
# 
# Path: hftools/py3compat.py
# DEFAULT_ENCODING = "cp1252"
#     PY3 = True
#     PY3 = False
# def no_code(x, encoding=None):
# def decode(s, encoding=None):
# def encode(u, encoding=None):
# def cast_unicode(s, encoding=None):
# def cast_bytes(s, encoding=None):
#     def reraise(tp, value, tb=None):
#     def popen(command):
#     def popen(command):
#     def print(*k, **kw):
# def cast_str(s, encoding=None):


import datetime
import numpy as np
import six
from hftools.utils import is_numlike, is_integer, deprecate
from hftools.py3compat import integer_types
# -*- coding: ISO-8859-1 -*-
#-----------------------------------------------------------------------------
# Copyright (c) 2014, HFTools Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
u"""
dim
========
.. autoclass:: DimBase



"""



def dims_has_complex(dims):
    for dim in reversed(dims):
        dims = (ComplexDerivAxis, ComplexIndepAxis, ComplexDiagAxis)
        if isinstance(dim, dims):
            return True
    return False


def info_has_complex(info):

# Path: hftools/utils.py
# def is_numlike(a):
#     if isinstance(a, np.ndarray):
#         return np.issubdtype(a.dtype, np.number)
#     else:
#         return np.issubdtype(np.array(a).dtype, np.number)
# 
# def is_integer(a):
#     if isinstance(a, np.ndarray):
#         return a.dtype.kind == "i"
#     else:
#         return isinstance(a, int)
# 
# def deprecate(msg):
#     warnings.warn(msg, HFToolsDeprecationWarning)
# 
# Path: hftools/py3compat.py
# DEFAULT_ENCODING = "cp1252"
#     PY3 = True
#     PY3 = False
# def no_code(x, encoding=None):
# def decode(s, encoding=None):
# def encode(u, encoding=None):
# def cast_unicode(s, encoding=None):
# def cast_bytes(s, encoding=None):
#     def reraise(tp, value, tb=None):
#     def popen(command):
#     def popen(command):
#     def print(*k, **kw):
# def cast_str(s, encoding=None):


# Path: hftools/dataset/dim.py
import datetime
import numpy as np
import six
from hftools.utils import is_numlike, is_integer, deprecate
from hftools.py3compat import integer_types

# -*- coding: ISO-8859-1 -*-
#-----------------------------------------------------------------------------
# Copyright (c) 2014, HFTools Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
u"""
dim
========
.. autoclass:: DimBase



"""



def dims_has_complex(dims):
    for dim in reversed(dims):
        dims = (ComplexDerivAxis, ComplexIndepAxis, ComplexDiagAxis)
        if isinstance(dim, dims):
            return True
    return False


def info_has_complex(info):

    deprecate("info_has_complex is deprecated")