-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from Autodesk/dev
Merge dev changes into master This comprises most of the work for 0.7.3. There will be one final PR to do the final polishing for the release.
- Loading branch information
Showing
134 changed files
with
13,889 additions
and
3,221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,62 @@ | ||
# Creating new MDT project releases | ||
# Whenever commiting changes anywhere | ||
|
||
Make SURE that you've run `set_filters.sh` at the project base. This will make sure that you don't accidentally commit any `ipynb` output fields into the repository. You can check to make sure the filters are working by running `git diff` on any notebook file that has output in it: all `output` and `metadata` fields should remain blank. | ||
|
||
# Creating a Pull Request | ||
|
||
These instructions generally apply to [Autodesk/molecular-design-toolkit](https://github.com/Autodesk/molecular-design-toolkit), | ||
[Autodesk/py-cloud-compute-cannon](https://github.com/Autodesk/py-cloud-compute-cannon), and [Autodesk/notebook-molecular-visualization](https://github.com/Autodesk/notebook-molecular-visualization). | ||
|
||
This is only for project maintainers - everyone else should use PRs. | ||
1. Group all changes in a single branch. | ||
1. Run tests in `moldesign/_tests` with `py.test -n NCORES` where `NCORES` is the number of jobs to run simultanously. | ||
2. Create a pull-request for the appropriate branch in Autodesk/molecular-design-toolkit | ||
|
||
|
||
# Maintainers: Accepting a PR | ||
|
||
Work can be merged into `master` or a feature branch, as appropriate. Don't merge broken code | ||
into master, but it doesn't need to be totally production-ready either: only releases (below) | ||
are considered "stable". | ||
|
||
1. Review the code. | ||
1. Make sure that there's appropriate functional tests. | ||
1. Run all tests. They don't all *necessarily* need to pass, but you need to undertand why what's passing and what's not. | ||
1. Run any example notebooks that might be affected by the PR. | ||
|
||
|
||
# Maintainers: Creating a new release | ||
|
||
Decide on the new version number (using [semantic versioning](http://semver.org/)). | ||
|
||
Everything here is HIGHLY PRELIMINARY!!! This will be a lot easier once Travis/Jenkins is up. | ||
|
||
1. Make sure all changes have been PR'd into master | ||
1. Check out a clean copy of master | ||
1. Run `check-manifest` at project root to make sure the distribution will include the necessary files. | ||
1. Increment the `default_version_tag` field in `moldesign.compute.config`, and commit the change | ||
1. Tag your local branch with the release number: `git tag [version]` (note: delete this tag with `git tag rm [version]` if you need to abort the release) | ||
4. Build new docker images: `cd docker_images; ./dockermake.py --all --repo docker.io/Autodesk/moldesign: --tag [version]` | ||
1. Confirm that all tests are passing *with and without* locally installed dependencies (pyscf, openbabel, etc) | ||
1. Confirm that all tutorial and example notebooks run without errors. | ||
|
||
If this is all succesfull - you're ready to make it public. | ||
|
||
1. Push docker images to cloud: `cd docker_images; ./dockermake.py --all --push --repo docker.io/Autodesk/moldesign: --tag [version]` | ||
4. `python setup.py register -r pypi` | ||
5. `python setup.py sdist upload -r pypi` | ||
1. `git push origin master --tags` | ||
|
||
The final step is the point of no return - you'll need to prep a new release if you discover a problem. Before that, you can undo | ||
what you've done by deleting your release off of PyPI and DockerHub. | ||
|
||
|
||
|
||
# Maintainers: updating docs | ||
|
||
Everything here is HIGHLY PRELIMINARY!!! This will change dramatically once Jenkins or Travis is up. | ||
Documentation is NOT coupled to the package releases; docs tend to get updated continuously. | ||
|
||
1. Push changes or merge PR into dev branch and check out a clean copy. | ||
1. Test it. | ||
1. Run `check-manifest` at project root. (Repeat steps 1-3 until this checks out OK) | ||
1. [MDT only] - update/push dockerfiles and image URLs in `moldesign.compute.configuration` | ||
2. Pull-request into master | ||
3. Tag master branch with new release number | ||
4. In repo root. `python setup.py register -r pypi` | ||
5. In repo root, `python setup.py sdist upload -r pypi` | ||
6. [MDT only] Run `cd docs; make html` and push contents of `_build/html` to the gh-pages branch. | ||
1. In the `master` branch, update the version numbers in `docs/conf.py` | ||
1. Run `cd docs; make clean; make html`. | ||
1. In a separate directory, check out a fresh copy of the repo and run `git checkout gh-pages` | ||
1. Copy the contents of `[master branch]/docs/_build/html` into the root of the `gh-pages` branch. | ||
1. Commit your changes to the `gh-pages` branch and push them back to GitHub. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
============ | ||
Atom objects | ||
============ | ||
|
||
.. autoclass:: moldesign.Atom | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Biomolecular structure | ||
====================== | ||
|
||
|
||
|
||
Primary structure | ||
----------------- | ||
**Class documentation:** :class:`moldesign.Chain`, :class:`moldesign.Residue` | ||
|
||
Biomolecules also contain primary structure information such as :class:`Chains <moldesign.Chain>` | ||
and :class:`Residues <moldesign.Residue>`. Chains can be accessed by name OR by index: | ||
|
||
>>> chain1 = molecule.chains['A'] | ||
>>> chain2 = molecule.chains[0] | ||
>>> chain1 is chain2 | ||
True | ||
|
||
Each chain contains :class:`residues <moldesign.Residue>`. In a chain, residues can similarly be | ||
accessed through a flat list or by name: | ||
|
||
>>> res0 = molecule.residues[0] | ||
>>> resA = molecule.chains['A'].residues['PRO1'] | ||
>>> res0 is resA | ||
True | ||
|
||
A flat list of all residues in a molecule is also available at `molecule.residues`. | ||
|
||
|
||
|
||
Biomolecular assemblies | ||
----------------------- | ||
Many biomolecules in the PDB only contain a subset of the total biomolecular structure - the | ||
remaining parts of the structure can be generated via `symmetry transformations <http://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/biological-assemblies>`_. | ||
|
||
When you read in such a structure, MDT will issue a warning. | ||
|
||
>>> mol = mdt.from_pdb('3FPP') | ||
WARNING: This PDB file contains the following biomolecular assemblies: | ||
WARNING: Assembly "1": 3 copies of chains A, B | ||
WARNING: Use ``mdt.build_assembly([molecule],[assembly_name])`` to build one of the above assemblies | ||
|
||
To create the full assembly, run | ||
>>> assembly = mdt.build_assembly(mol,"1") | ||
>>> assembly.draw() | ||
|
||
.. image:: img/howdoi_pdb_assm.png | ||
|
||
Note: | ||
Only PDB-formatted files are currently supported for biomolecular assemblies - MMCif support | ||
is in progress. | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Molecular dynamics | ||
================== | ||
|
||
Protein MD | ||
---------- | ||
|
||
WIP | ||
|
||
Small molecule MD | ||
----------------- | ||
|
||
WIP | ||
|
||
Quantum chemical potentials | ||
--------------------------- | ||
|
||
WIP |
Oops, something went wrong.