<commit_before># -*- coding: utf-8 -*-
"""
=============================================================
Nanotube structure tools (:mod:`sknano.nanogen._nanotubes`)
=============================================================

.. currentmodule:: sknano.nanogen._nanotubes

"""
from __future__ import absolute_import, division, print_function
__docformat__ = 'restructuredtext en'

from fractions import gcd
from collections import OrderedDict

import numpy as np
np.seterr(all='raise')

try:
    from pint import UnitRegistry
    ureg = UnitRegistry()
    Qty = ureg.Quantity
except ImportError:
    Qty = None

from ..chemistry import Atom
from ..tools import comparison_symbol_operator_mappings
from ..tools.refdata import CCbond, dVDW, grams_per_Da

from ._parameter_luts import param_units, param_symbols, param_strfmt

__all__ = ['Nanotube', 'NanotubeBundle']


class Nanotube(object):
    u"""Class for creating interactive Nanotube objects.
<commit_msg>change import order<commit_after># -*- coding: utf-8 -*-
"""
=============================================================
Nanotube structure tools (:mod:`sknano.nanogen._nanotubes`)
=============================================================

.. currentmodule:: sknano.nanogen._nanotubes

"""
from __future__ import absolute_import, division, print_function
__docformat__ = 'restructuredtext en'

from collections import OrderedDict
from fractions import gcd

import numpy as np
np.seterr(all='raise')

try:
    from pint import UnitRegistry
    ureg = UnitRegistry()
    Qty = ureg.Quantity
except ImportError:
    Qty = None

from ..chemistry import Atom
from ..tools import comparison_symbol_operator_mappings
from ..tools.refdata import CCbond, dVDW, grams_per_Da

from ._parameter_luts import param_units, param_symbols, param_strfmt

__all__ = ['Nanotube', 'NanotubeBundle']


class Nanotube(object):
    u"""Class for creating interactive Nanotube objects.

{'fraction_non_alphanumeric': 0.2074688796680498, 'fraction_numerical': 0.001037344398340249, 'mean_word_length': 5.864768683274021, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6512384', 'n_tokens_mistral': 571, 'n_tokens_neox': 532, 'n_words': 152}