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
"platforms/vscode:/vscode.git/clone" did not exist on "9425210a14240fbf36bc000a13f9e2943cf31f5e"
Commit
6b4d27e9
authored
Mar 07, 2018
by
Sunhwan Jo
Browse files
use NotImplementedError for raising exception
parent
2b2c98c0
Changes
3
Show 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,7 +342,7 @@ class CharmmPsfFile(object):
...
@@ -342,7 +342,7 @@ class CharmmPsfFile(object):
# We have a CHARMM PSF file; now do NUMLP/NUMLPH sections
# We have a CHARMM PSF file; now do NUMLP/NUMLPH sections
numlp
,
numlph
=
psfsections
[
'NUMLP NUMLPH'
][
0
]
numlp
,
numlph
=
psfsections
[
'NUMLP NUMLPH'
][
0
]
if
numlp
!=
0
or
numlph
!=
0
:
if
numlp
!=
0
or
numlph
!=
0
:
raise
NotImplemented
(
'Cannot currently handle PSFs with lone '
raise
NotImplemented
Error
(
'Cannot currently handle PSFs with lone '
'pairs defined in the NUMLP/NUMLPH '
'pairs defined in the NUMLP/NUMLPH '
'section.'
)
'section.'
)
# Now do the CMAPs
# Now do the CMAPs
...
...
wrappers/python/simtk/openmm/app/gromacstopfile.py
View file @
6b4d27e9
...
@@ -890,7 +890,7 @@ class GromacsTopFile(object):
...
@@ -890,7 +890,7 @@ class GromacsTopFile(object):
if
has_nbfix_terms
:
if
has_nbfix_terms
:
if
self
.
_defaults
[
1
]
!=
'2'
:
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
)
nb
.
addParticle
(
q
,
1.0
,
0.0
)
atom_charges
.
append
(
q
)
atom_charges
.
append
(
q
)
else
:
else
:
...
@@ -1054,7 +1054,7 @@ class GromacsTopFile(object):
...
@@ -1054,7 +1054,7 @@ class GromacsTopFile(object):
if
has_nbfix_terms
:
if
has_nbfix_terms
:
if
self
.
_defaults
[
1
]
!=
'2'
:
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
([])
atom_nbfix_types
=
set
([])
for
pair
in
self
.
_nonbondTypes
:
for
pair
in
self
.
_nonbondTypes
:
...
...
wrappers/python/simtk/openmm/app/internal/charmm/topologyobjects.py
View file @
6b4d27e9
...
@@ -531,7 +531,7 @@ class ResidueList(list):
...
@@ -531,7 +531,7 @@ class ResidueList(list):
return
atom
return
atom
def
append
(
self
,
thing
):
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
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