|
150 | 150 |
|
151 | 151 | """
|
152 | 152 |
|
153 |
| -__all__ = ['Universe', 'Writer', |
154 |
| - 'AtomGroup', 'ResidueGroup', 'SegmentGroup'] |
| 153 | +__all__ = ["Universe", "Writer", "AtomGroup", "ResidueGroup", "SegmentGroup"] |
155 | 154 |
|
156 | 155 | import logging
|
157 | 156 | import warnings
|
|
161 | 160 | logger = logging.getLogger("MDAnalysis.__init__")
|
162 | 161 |
|
163 | 162 | from .version import __version__
|
| 163 | + |
164 | 164 | try:
|
165 | 165 | from .authors import __authors__
|
166 | 166 | except ImportError:
|
167 |
| - logger.info('Could not find authors.py, __authors__ will be empty.') |
| 167 | + logger.info("Could not find authors.py, __authors__ will be empty.") |
168 | 168 | __authors__ = []
|
169 | 169 |
|
170 | 170 | # Registry of Readers, Parsers and Writers known to MDAnalysis
|
|
178 | 178 | _SELECTION_WRITERS: Dict = {}
|
179 | 179 | _CONVERTERS: Dict = {}
|
180 | 180 | # Registry of TopologyAttributes
|
181 |
| -_TOPOLOGY_ATTRS: Dict = {} # {attrname: cls} |
182 |
| -_TOPOLOGY_TRANSPLANTS: Dict = {} # {name: [attrname, method, transplant class]} |
183 |
| -_TOPOLOGY_ATTRNAMES: Dict = {} # {lower case name w/o _ : name} |
| 181 | +_TOPOLOGY_ATTRS: Dict = {} # {attrname: cls} |
| 182 | +_TOPOLOGY_TRANSPLANTS: Dict = ( |
| 183 | + {} |
| 184 | +) # {name: [attrname, method, transplant class]} |
| 185 | +_TOPOLOGY_ATTRNAMES: Dict = {} # {lower case name w/o _ : name} |
184 | 186 | _GUESSERS: Dict = {}
|
185 | 187 |
|
186 | 188 | # custom exceptions and warnings
|
187 | 189 | from .exceptions import (
|
188 |
| - SelectionError, NoDataError, ApplicationError, SelectionWarning, |
189 |
| - MissingDataWarning, ConversionWarning, FileFormatWarning, |
190 |
| - StreamWarning |
| 190 | + SelectionError, |
| 191 | + NoDataError, |
| 192 | + ApplicationError, |
| 193 | + SelectionWarning, |
| 194 | + MissingDataWarning, |
| 195 | + ConversionWarning, |
| 196 | + FileFormatWarning, |
| 197 | + StreamWarning, |
191 | 198 | )
|
192 | 199 |
|
193 | 200 | from .lib import log
|
|
197 | 204 | del logging
|
198 | 205 |
|
199 | 206 | # only MDAnalysis DeprecationWarnings are loud by default
|
200 |
| -warnings.filterwarnings(action='once', category=DeprecationWarning, |
201 |
| - module='MDAnalysis') |
| 207 | +warnings.filterwarnings( |
| 208 | + action="once", category=DeprecationWarning, module="MDAnalysis" |
| 209 | +) |
202 | 210 |
|
203 | 211 |
|
204 | 212 | from . import units
|
|
213 | 221 |
|
214 | 222 | from .due import due, Doi, BibTeX
|
215 | 223 |
|
216 |
| -due.cite(Doi("10.25080/majora-629e541a-00e"), |
217 |
| - description="Molecular simulation analysis library", |
218 |
| - path="MDAnalysis", cite_module=True) |
219 |
| -due.cite(Doi("10.1002/jcc.21787"), |
220 |
| - description="Molecular simulation analysis library", |
221 |
| - path="MDAnalysis", cite_module=True) |
| 224 | +due.cite( |
| 225 | + Doi("10.25080/majora-629e541a-00e"), |
| 226 | + description="Molecular simulation analysis library", |
| 227 | + path="MDAnalysis", |
| 228 | + cite_module=True, |
| 229 | +) |
| 230 | +due.cite( |
| 231 | + Doi("10.1002/jcc.21787"), |
| 232 | + description="Molecular simulation analysis library", |
| 233 | + path="MDAnalysis", |
| 234 | + cite_module=True, |
| 235 | +) |
222 | 236 |
|
223 | 237 | del Doi, BibTeX
|
0 commit comments