-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In process to refactor set chain_id to atoms
- Loading branch information
Showing
8 changed files
with
329 additions
and
154 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
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,20 @@ | ||
from molsysmt._private.digestion import digest | ||
import numpy as np | ||
|
||
@digest() | ||
def define_chain(molecular_system, selection=None, id=None, name=None, syntax='MolSysMT'): | ||
""" | ||
To be written soon... | ||
""" | ||
|
||
from molsysmt.basic import get, set | ||
|
||
former_id, former_name = get(molecular_system, element='chain', chain_id=True) | ||
|
||
if id in former_id: | ||
raise ValueError() | ||
|
||
set(molecular_system, element='atom', selection=selection, syntax=syntax, | ||
chain_id=id, chain_name=name) | ||
|
||
pass |
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
Oops, something went wrong.