# Path: dynts/conf.py
# def toupper(x):
#     def __init__(self):
#     def special_operators(self):
#     def getdc(self):
#     def ismissing(self, value):
# class Settings(object):
# 
# Path: dynts/exc.py
# class FormattingException(DyntsException):
#     '''A :class:`DyntsException` exception raised when
# an exception occurs during formatting of a :class:`dynts.TimeSeries`'''
#     pass


from ..conf import settings
from ..exc import FormattingException

    def __init__(self, name, info):
        self.name = str(name or '')
        self.info = info

    def __repr__(self):
        d = self.description()
        b = '%s:%s' % (self.__class__.__name__, self.__class__.type)
        return '%s:%s' % (b, d) if d else b

    def __str__(self):
        return self.description()

    def description(self):
        return self.name

    def names(self, with_namespace=False):
        '''List of names for series in dataset.

        It will always return a list or names with length given by
        :class:`~.DynData.count`.
        '''
        N = self.count()
        names = self.name.split(settings.splittingnames)[:N]
        n = 0
        while len(names) < N:
            n += 1
            names.append('unnamed%s' % n)
        if with_namespace and self.namespace:
            n = self.namespace

# Path: dynts/conf.py
# def toupper(x):
#     def __init__(self):
#     def special_operators(self):
#     def getdc(self):
#     def ismissing(self, value):
# class Settings(object):
# 
# Path: dynts/exc.py
# class FormattingException(DyntsException):
#     '''A :class:`DyntsException` exception raised when
# an exception occurs during formatting of a :class:`dynts.TimeSeries`'''
#     pass


# Path: dynts/api/data.py
from ..conf import settings
from ..exc import FormattingException


    def __init__(self, name, info):
        self.name = str(name or '')
        self.info = info

    def __repr__(self):
        d = self.description()
        b = '%s:%s' % (self.__class__.__name__, self.__class__.type)
        return '%s:%s' % (b, d) if d else b

    def __str__(self):
        return self.description()

    def description(self):
        return self.name

    def names(self, with_namespace=False):
        '''List of names for series in dataset.

        It will always return a list or names with length given by
        :class:`~.DynData.count`.
        '''
        N = self.count()
        names = self.name.split(settings.splittingnames)[:N]
        n = 0
        while len(names) < N:
            n += 1
            names.append('unnamed%s' % n)
        if with_namespace and self.namespace:
            n = self.namespace

            s = settings.field_separator