Skip to content

Commit

Permalink
Merge pull request #70 from datreant/new-awesome-improvment
Browse files Browse the repository at this point in the history
update to datreant.core changes
  • Loading branch information
dotsdl committed Dec 17, 2017
2 parents 98c5555 + 0e6b559 commit b2df8f4
Show file tree
Hide file tree
Showing 20 changed files with 547 additions and 901 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -8,6 +8,8 @@ addons:

python:
- "2.7"
- "3.5"
- "3.6"

# whitelist
branches:
Expand All @@ -22,7 +24,7 @@ env:

matrix:
allow_failures:
- env: DATREANT_DEV="true"
- env: DATREANT_DEV="false"

# install python dependencies
install:
Expand Down
8 changes: 4 additions & 4 deletions docs/api_sims.rst
Expand Up @@ -22,20 +22,20 @@ The class :class:`mdsynthesis.Sim` is the central object of ``mdsynthesis``.

UniverseDefinition
``````````````````
The class :class:`mdsynthesis.limbs.UniverseDefinition` is the interface used by a Sim to
The class :class:`mdsynthesis.metadata.UniverseDefinition` is the interface used by a Sim to
define its :class:`MDAnalysis.Universe`.

.. autoclass:: mdsynthesis.limbs.UniverseDefinition
.. autoclass:: mdsynthesis.metadata.UniverseDefinition
:members:
:inherited-members:

.. _AtomSelections_api:

AtomSelections
``````````````
The class :class:`mdsynthesis.limbs.AtomSelections` is the interface used by Sims to
The class :class:`mdsynthesis.metadata.AtomSelections` is the interface used by Sims to
get :class:`MDAnalysis.AtomGroup` objects from stored selection definitions.

.. autoclass:: mdsynthesis.limbs.AtomSelections
.. autoclass:: mdsynthesis.metadata.AtomSelections
:members:
:inherited-members:
6 changes: 0 additions & 6 deletions docs/datreant.rst
Expand Up @@ -6,11 +6,6 @@ exposed in the MDSynthesis namespace.

.. currentmodule:: datreant.core

Functions
=========
.. autosummary::
discover

Classes
=======
.. autosummary::
Expand All @@ -19,7 +14,6 @@ Classes
Leaf
View
Bundle
Group

Learning more
=============
Expand Down
6 changes: 3 additions & 3 deletions docs/sims.rst
Expand Up @@ -138,7 +138,7 @@ kinase, the protein we simulated. We can store these immediately::
>>> s.atomselections['core'] = ('resid 1:29', 'resid 60:121', 'resid 160:214')

We can now get new AtomGroups back for each selection at any time with the
:meth:`~mdsynthesis.limbs.AtomSelections.create` method::
:meth:`~mdsynthesis.metadata.AtomSelections.create` method::

>>> s.atomselections.create('lid')
<AtomGroup with 598 atoms>
Expand All @@ -161,7 +161,7 @@ work with many variants of a simulation system without having to micromanage.
alignments.

Want just the selection strings back? We can use
:meth:`~mdsynthesis.limbs.AtomSelections.get`::
:meth:`~mdsynthesis.metadata.AtomSelections.get`::

>>> s.atomselections.get('lid')
'resid 122:159'
Expand All @@ -182,7 +182,7 @@ indices instead of as a selection string? That can be done, too::

Lists/tuples of selection strings or atom indices can be stored in any combination
as a selection. These are applied in order to yield the AtomGroup when calling the
:meth:`~mdsynthesis.limbs.AtomSelections.create` method.
:meth:`~mdsynthesis.metadata.AtomSelections.create` method.

API Reference: AtomSelections
-----------------------------
Expand Down
4 changes: 3 additions & 1 deletion setup.cfg
@@ -1,2 +1,4 @@
[pytest]
[tool:pytest]
pep8ignore = __init__.py E402
filterwarnings= all
ignore::UserWarning
4 changes: 1 addition & 3 deletions setup.py
Expand Up @@ -31,8 +31,6 @@
long_description=open('README.rst').read(),
install_requires=[
'datreant.core>=0.6.0',
'datreant.data>=0.6.0',
# TODO: update dependency to 0.16.0 once it's released
'MDAnalysis>=0.14.0',
'MDAnalysis>=0.16.0',
],
)
6 changes: 3 additions & 3 deletions src/mdsynthesis/__init__.py
Expand Up @@ -8,11 +8,11 @@
================================================================
"""
# Bring some often used objects into the current namespace
from datreant.core import Treant, Group, Bundle, Tree, Leaf, View
from datreant.core import Tree, Leaf, View, Bundle
from datreant.core import discover

from .treants import Sim
from . import attach
from .manipulators import discover

__all__ = ['Sim', 'Group', 'Bundle']
__all__ = ['Sim', 'Bundle', 'discover', 'Tree', 'Leaf', 'View']
__version__ = "0.6.2-dev" # NOTE: keep in sync with RELEASE in setup.py
15 changes: 0 additions & 15 deletions src/mdsynthesis/attach.py

This file was deleted.

10 changes: 0 additions & 10 deletions src/mdsynthesis/backends/__init__.py

This file was deleted.

12 changes: 0 additions & 12 deletions src/mdsynthesis/backends/statefiles.py

This file was deleted.

117 changes: 0 additions & 117 deletions src/mdsynthesis/filesystem.py

This file was deleted.

0 comments on commit b2df8f4

Please sign in to comment.