Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
6b4d27e9
Commit
6b4d27e9
authored
Mar 07, 2018
by
Sunhwan Jo
Browse files
use NotImplementedError for raising exception
parent
2b2c98c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
wrappers/python/simtk/openmm/app/charmmpsffile.py
wrappers/python/simtk/openmm/app/charmmpsffile.py
+3
-3
wrappers/python/simtk/openmm/app/gromacstopfile.py
wrappers/python/simtk/openmm/app/gromacstopfile.py
+2
-2
wrappers/python/simtk/openmm/app/internal/charmm/topologyobjects.py
...ython/simtk/openmm/app/internal/charmm/topologyobjects.py
+1
-1
No files found.
wrappers/python/simtk/openmm/app/charmmpsffile.py
View file @
6b4d27e9
...
...
@@ -342,9 +342,9 @@ class CharmmPsfFile(object):
# We have a CHARMM PSF file; now do NUMLP/NUMLPH sections
numlp
,
numlph
=
psfsections
[
'NUMLP NUMLPH'
][
0
]
if
numlp
!=
0
or
numlph
!=
0
:
raise
NotImplemented
(
'Cannot currently handle PSFs with lone '
'pairs defined in the NUMLP/NUMLPH '
'section.'
)
raise
NotImplemented
Error
(
'Cannot currently handle PSFs with lone '
'pairs defined in the NUMLP/NUMLPH '
'section.'
)
# Now do the CMAPs
ncrterm
=
conv
(
psfsections
[
'NCRTERM'
][
0
],
int
,
'Number of cross-terms'
)
holder
=
psfsections
[
'NCRTERM'
][
1
]
...
...
wrappers/python/simtk/openmm/app/gromacstopfile.py
View file @
6b4d27e9
...
...
@@ -890,7 +890,7 @@ class GromacsTopFile(object):
if
has_nbfix_terms
:
if
self
.
_defaults
[
1
]
!=
'2'
:
raise
NotImplemented
(
'NBFIX terms with LB combination rule is not yet supported'
)
raise
NotImplemented
Error
(
'NBFIX terms with LB combination rule is not yet supported'
)
nb
.
addParticle
(
q
,
1.0
,
0.0
)
atom_charges
.
append
(
q
)
else
:
...
...
@@ -1054,7 +1054,7 @@ class GromacsTopFile(object):
if
has_nbfix_terms
:
if
self
.
_defaults
[
1
]
!=
'2'
:
raise
NotImplemented
(
'NBFIX terms with LB combination rule is not yet supported'
)
raise
NotImplemented
Error
(
'NBFIX terms with LB combination rule is not yet supported'
)
atom_nbfix_types
=
set
([])
for
pair
in
self
.
_nonbondTypes
:
...
...
wrappers/python/simtk/openmm/app/internal/charmm/topologyobjects.py
View file @
6b4d27e9
...
...
@@ -531,7 +531,7 @@ class ResidueList(list):
return
atom
def
append
(
self
,
thing
):
raise
NotImplemented
(
'Use "add_atom" to build a residue list'
)
raise
NotImplemented
Error
(
'Use "add_atom" to build a residue list'
)
extend
=
append
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment