Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hd codes/issue4655 #4702

Closed
wants to merge 3 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 28 additions & 27 deletions package/MDAnalysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,23 +150,45 @@

"""

__all__ = ['Universe', 'Writer',
'AtomGroup', 'ResidueGroup', 'SegmentGroup']

import logging
import warnings
from typing import Dict


logger = logging.getLogger("MDAnalysis.__init__")

from .version import __version__

try:
from .authors import __authors__
except ImportError:
logger = logging.getLogger("MDAnalysis.__init__")
logger.info('Could not find authors.py, __authors__ will be empty.')
__authors__ = []

__all__ = ['Universe', 'Writer', 'AtomGroup', 'ResidueGroup', 'SegmentGroup', '__version__',
'SelectionError', 'NoDataError', 'ApplicationError', 'SelectionWarning',
'MissingDataWarning', 'ConversionWarning', 'FileFormatWarning', 'StreamWarning',
'start_logging', 'stop_logging', 'units', 'Merge', 'converters']

# custom exceptions and warnings
from .exceptions import (
SelectionError, NoDataError, ApplicationError, SelectionWarning,
MissingDataWarning, ConversionWarning, FileFormatWarning,
StreamWarning
)

from .lib import log
from .lib.log import start_logging, stop_logging
from . import units

# Bring some often used objects into the current namespace
from .core.universe import Universe, Merge
from .core.groups import AtomGroup, ResidueGroup, SegmentGroup
from .coordinates.core import writer as Writer

# After Universe import
from . import converters

from .due import due, Doi, BibTeX

# Registry of Readers, Parsers and Writers known to MDAnalysis
# Metaclass magic fills these as classes are declared.
_READERS: Dict = {}
Expand All @@ -183,15 +205,6 @@
_TOPOLOGY_ATTRNAMES: Dict = {} # {lower case name w/o _ : name}


# custom exceptions and warnings
from .exceptions import (
SelectionError, NoDataError, ApplicationError, SelectionWarning,
MissingDataWarning, ConversionWarning, FileFormatWarning,
StreamWarning
)

from .lib import log
from .lib.log import start_logging, stop_logging

logging.getLogger("MDAnalysis").addHandler(log.NullHandler())
del logging
Expand All @@ -201,18 +214,6 @@
module='MDAnalysis')


from . import units

# Bring some often used objects into the current namespace
from .core.universe import Universe, Merge
from .core.groups import AtomGroup, ResidueGroup, SegmentGroup
from .coordinates.core import writer as Writer

# After Universe import
from . import converters

from .due import due, Doi, BibTeX

due.cite(Doi("10.25080/majora-629e541a-00e"),
description="Molecular simulation analysis library",
path="MDAnalysis", cite_module=True)
Expand Down
Loading