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
d59f19e4
Commit
d59f19e4
authored
Aug 02, 2019
by
Andreas Krämer
Browse files
Throw PSF warning only in serious cases
when the number of molecules does not agree with the number of holders.
parent
f38da875
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
wrappers/python/simtk/openmm/app/charmmpsffile.py
wrappers/python/simtk/openmm/app/charmmpsffile.py
+6
-3
No files found.
wrappers/python/simtk/openmm/app/charmmpsffile.py
View file @
d59f19e4
...
...
@@ -335,9 +335,12 @@ class CharmmPsfFile(object):
set_molecules
(
atom_list
)
molecule_list
=
[
atom
.
marked
for
atom
in
atom_list
]
if
len
(
holder
)
==
len
(
atom_list
):
#if molecule_list != holder:
# warnings.warn('Detected PSF molecule section that is WRONG. '
# 'Resetting molecularity.', CharmmPSFWarning)
if
len
(
molecule_list
)
!=
len
(
holder
):
# The MOLNT section is only used for fluctuating charge models,
# which are currently not supported anyway.
# Therefore, we only check the lengths of the lists now rather than their contents.
warnings
.
warn
(
'Detected PSF molecule section that is WRONG. '
'Resetting molecularity.'
,
CharmmPSFWarning
)
# We have a CHARMM PSF file; now do NUMLP/NUMLPH sections
numlp
,
numlph
=
psfsections
[
'NUMLP NUMLPH'
][
0
]
if
numlp
!=
0
or
numlph
!=
0
:
...
...
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