Skip to content

Commit

Permalink
Merge pull request #90 from OpenBioSim/fix_88
Browse files Browse the repository at this point in the history
Fix issue #88 [ci skip]
  • Loading branch information
lohedges authored Jun 5, 2023
2 parents 28af3ed + 7d6db72 commit a68f7c2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
23 changes: 23 additions & 0 deletions doc/source/contributing/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,29 @@ Instead use:
print(c.getList())
[1, 2, 3, 4, 5]
Sire
----

BioSimSpace is built on top of the `Sire <https://github.com/openbiosim/sire>`__
and makes exstensive use of its API. Sire has recently been updated to a new,
Python compliant API. Within BioSimSpace, Sire is currently imported in a
*mixed* mode so that we can use *both* the new and legacy APIs while we
work to port things over. A consequence of this is that Sire imports
*must* follow those for BioSimSpace, e.g.:

.. code-block:: python
from sire.mol import AtomIdx
import BioSimSpace as BSS
will fail, while the following will work:

.. code-block:: python
import BioSimSpace as BSS
from sire.mol import AtomIdx
Workflow
========

Expand Down
4 changes: 2 additions & 2 deletions nodes/playground/prepareFEP.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"source": [
"import os\n",
"import zipfile\n",
"from sire.legacy.Mol import AtomIdx\n",
"import BioSimSpace as BSS"
"import BioSimSpace as BSS\n",
"from sire.legacy.Mol import AtomIdx"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion nodes/playground/prepareFEP.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

import os
import zipfile
from sire.legacy.Mol import AtomIdx
import BioSimSpace as BSS
from sire.legacy.Mol import AtomIdx


# In[ ]:
Expand Down

0 comments on commit a68f7c2

Please sign in to comment.