<commit_before># -*- coding: utf-8 -*-
"""
==============================================================================
MWNT structure class (:mod:`sknano.structures._mwnt`)
==============================================================================

.. currentmodule:: sknano.structures._mwnt

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

import numpy as np

from sknano.core.refdata import dVDW

from ._base import StructureBase
from ._swnt import SWNT
from ._compute_funcs import compute_dt
from ._extras import generate_Ch_list
from ._mixins import MWNTMixin

__all__ = ['MWNT']


class MWNT(MWNTMixin, StructureBase):
    """MWNT structure class."""
    def __init__(self, Ch_list=None, Nwalls=None, Lz=None, fix_Lz=False,
                 min_shell_diameter=None, max_shell_diameter=None,
                 max_shells=None, chiral_type=None, shell_spacing=dVDW,
                 **kwargs):

        super(MWNT, self).__init__(**kwargs)

        if Ch_list is None or not isinstance(Ch_list, list):

            if Nwalls is not None:
                max_shells = Nwalls<commit_msg>handle deprecated constructor param `Ch`<commit_after># -*- coding: utf-8 -*-
"""
==============================================================================
MWNT structure class (:mod:`sknano.structures._mwnt`)
==============================================================================

.. currentmodule:: sknano.structures._mwnt

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

import numpy as np

from sknano.core.refdata import dVDW

from ._base import StructureBase
from ._swnt import SWNT
from ._compute_funcs import compute_dt
from ._extras import generate_Ch_list
from ._mixins import MWNTMixin

__all__ = ['MWNT']


class MWNT(MWNTMixin, StructureBase):
    """MWNT structure class."""
    def __init__(self, Ch_list=None, Nwalls=None, Lz=None, fix_Lz=False,
                 min_shell_diameter=None, max_shell_diameter=None,
                 max_shells=None, chiral_type=None, shell_spacing=dVDW,
                 **kwargs):
        if Ch_list is None and 'Ch' in kwargs:
            Ch_list = kwargs['Ch']
            del kwargs['Ch']

        super(MWNT, self).__init__(**kwargs)

        if Ch_list is None or not isinstance(Ch_list, list):

            if Nwalls is not None:
                max_shells = Nwalls
{'fraction_non_alphanumeric': 0.21090617481956697, 'fraction_numerical': 0.0008019246190858059, 'mean_word_length': 3.8352713178294575, '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': '4595525', 'n_tokens_mistral': 772, 'n_tokens_neox': 707, 'n_words': 183}