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
82703dff
Unverified
Commit
82703dff
authored
Dec 30, 2025
by
Christian Clauss
Committed by
GitHub
Dec 30, 2025
Browse files
Fix typos discovered by codespell in Python files (#5173)
parent
07b738c5
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
29 additions
and
29 deletions
+29
-29
devtools/forcefield-scripts/processTinkerForceField.py
devtools/forcefield-scripts/processTinkerForceField.py
+1
-1
devtools/run-ctest.py
devtools/run-ctest.py
+1
-1
examples/benchmarks/benchmark.py
examples/benchmarks/benchmark.py
+1
-1
examples/extras/rigid.py
examples/extras/rigid.py
+1
-1
wrappers/python/openmm/app/desmonddmsfile.py
wrappers/python/openmm/app/desmonddmsfile.py
+3
-3
wrappers/python/openmm/app/internal/amber_file_parser.py
wrappers/python/openmm/app/internal/amber_file_parser.py
+1
-1
wrappers/python/openmm/app/internal/amoebaforces.py
wrappers/python/openmm/app/internal/amoebaforces.py
+3
-3
wrappers/python/openmm/app/internal/pdbstructure.py
wrappers/python/openmm/app/internal/pdbstructure.py
+2
-2
wrappers/python/openmm/app/internal/pdbx/reader/PdbxContainers.py
.../python/openmm/app/internal/pdbx/reader/PdbxContainers.py
+1
-1
wrappers/python/openmm/app/internal/pdbx/reader/PdbxParser.py
...pers/python/openmm/app/internal/pdbx/reader/PdbxParser.py
+3
-3
wrappers/python/openmm/app/internal/pdbx/reader/PdbxReader.py
...pers/python/openmm/app/internal/pdbx/reader/PdbxReader.py
+1
-1
wrappers/python/openmm/app/internal/pdbx/writer/PdbxWriter.py
...pers/python/openmm/app/internal/pdbx/writer/PdbxWriter.py
+1
-1
wrappers/python/openmm/app/tinkerfiles.py
wrappers/python/openmm/app/tinkerfiles.py
+1
-1
wrappers/python/openmm/unit/mymatrix.py
wrappers/python/openmm/unit/mymatrix.py
+1
-1
wrappers/python/openmm/unit/prefix.py
wrappers/python/openmm/unit/prefix.py
+1
-1
wrappers/python/openmm/unit/quantity.py
wrappers/python/openmm/unit/quantity.py
+2
-2
wrappers/python/openmm/unit/unit.py
wrappers/python/openmm/unit/unit.py
+2
-2
wrappers/python/src/swig_doxygen/swigInputBuilder.py
wrappers/python/src/swig_doxygen/swigInputBuilder.py
+1
-1
wrappers/python/src/swig_doxygen/swigInputConfig.py
wrappers/python/src/swig_doxygen/swigInputConfig.py
+1
-1
wrappers/python/tests/TestAPIUnits.py
wrappers/python/tests/TestAPIUnits.py
+1
-1
No files found.
devtools/forcefield-scripts/processTinkerForceField.py
View file @
82703dff
...
@@ -293,7 +293,7 @@ def buildResidueDict( residueXmlFileName ):
...
@@ -293,7 +293,7 @@ def buildResidueDict( residueXmlFileName ):
atoms
=
getXmlAtoms
(
residue
.
findall
(
'Atom'
)
)
atoms
=
getXmlAtoms
(
residue
.
findall
(
'Atom'
)
)
bondInfo
=
getXmlBonds
(
residue
.
findall
(
'Bond'
)
)
bondInfo
=
getXmlBonds
(
residue
.
findall
(
'Bond'
)
)
# if residue is an amino acid, then create CALA and NALA residues, in addition to non-termianal residue, and include approriate atoms
# if residue is an amino acid, then create CALA and NALA residues, in addition to non-termianal residue, and include appro
p
riate atoms
# HXT is excluded from all residues
# HXT is excluded from all residues
if
(
isWater
):
if
(
isWater
):
...
...
devtools/run-ctest.py
View file @
82703dff
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Run test suite through CTest, with some options set for the CI environment.
Run test suite through CTest, with some options set for the CI environment.
- Runs with a per-test and overall timeout which can be governed by the
- Runs with a per-test and overall timeout which can be governed by the
av
i
alable time on the CI system.
ava
i
lable time on the CI system.
- Reruns tests which fail (does not rerun tests which merely timeout).
- Reruns tests which fail (does not rerun tests which merely timeout).
"""
"""
...
...
examples/benchmarks/benchmark.py
View file @
82703dff
...
@@ -34,7 +34,7 @@ def appendTestResult(filename=None, test_result=None, system_info=None):
...
@@ -34,7 +34,7 @@ def appendTestResult(filename=None, test_result=None, system_info=None):
The filename to append a result to, ending either in .yaml or .json
The filename to append a result to, ending either in .yaml or .json
If None, no result is written
If None, no result is written
test_result : dict, optional, default=None
test_result : dict, optional, default=None
The test result to append to the 'benchmarks' bl
c
ok
The test result to append to the 'benchmarks' blo
c
k
system_info : dict, optional, default=None
system_info : dict, optional, default=None
System info to append to the 'system' block
System info to append to the 'system' block
"""
"""
...
...
examples/extras/rigid.py
View file @
82703dff
...
@@ -52,7 +52,7 @@ def createRigidBodies(system, positions, bodies):
...
@@ -52,7 +52,7 @@ def createRigidBodies(system, positions, bodies):
Care is needed when using constraints, since virtual particles cannot participate in constraints. If the
Care is needed when using constraints, since virtual particles cannot participate in constraints. If the
input system includes any constraints, this function will automatically remove ones that connect two
input system includes any constraints, this function will automatically remove ones that connect two
particles in the same rigid body. But if there is a constraint beween a particle in a rigid body and
particles in the same rigid body. But if there is a constraint be
t
ween a particle in a rigid body and
another particle not in that body, it will likely lead to an exception when you try to create a context.
another particle not in that body, it will likely lead to an exception when you try to create a context.
Parameters:
Parameters:
...
...
wrappers/python/openmm/app/desmonddmsfile.py
View file @
82703dff
...
@@ -60,7 +60,7 @@ class DesmondDMSFile(object):
...
@@ -60,7 +60,7 @@ class DesmondDMSFile(object):
# sqlite3 is included in the standard lib, but at python
# sqlite3 is included in the standard lib, but at python
# compile time, you can disable support (I think), so it's
# compile time, you can disable support (I think), so it's
# not *guar
e
nteed* to be available. Doing the import here
# not *guar
a
nteed* to be available. Doing the import here
# means we only raise an ImportError if people try to use
# means we only raise an ImportError if people try to use
# this class, so the module can be safely imported
# this class, so the module can be safely imported
import
sqlite3
import
sqlite3
...
@@ -90,7 +90,7 @@ class DesmondDMSFile(object):
...
@@ -90,7 +90,7 @@ class DesmondDMSFile(object):
self
.
_open
[
fcounter
]
=
True
self
.
_open
[
fcounter
]
=
True
tables
=
self
.
_readSchemas
(
conn
)
tables
=
self
.
_readSchemas
(
conn
)
if
len
(
tables
)
==
0
:
if
len
(
tables
)
==
0
:
raise
IOError
(
'DMS file %s was not loaded sucessfully. No tables found'
%
str
(
f
))
raise
IOError
(
'DMS file %s was not loaded suc
c
essfully. No tables found'
%
str
(
f
))
if
'nbtype'
not
in
tables
[
'particle'
]:
if
'nbtype'
not
in
tables
[
'particle'
]:
raise
ValueError
(
'No nonbonded parameters associated with '
raise
ValueError
(
'No nonbonded parameters associated with '
'DMS file %s. You can add a forcefield with the '
'DMS file %s. You can add a forcefield with the '
...
@@ -882,7 +882,7 @@ class DesmondDMSFile(object):
...
@@ -882,7 +882,7 @@ class DesmondDMSFile(object):
def
_checkForUnsupportedTerms
(
self
):
def
_checkForUnsupportedTerms
(
self
):
"""Check the file for forcefield terms that are not currenty supported,
"""Check the file for forcefield terms that are not current
l
y supported,
raising a NotImplementedError
raising a NotImplementedError
"""
"""
flat_bottom_potential_terms
=
[
'stretch_fbhw_term'
,
'angle_fbhw_term'
,
flat_bottom_potential_terms
=
[
'stretch_fbhw_term'
,
'angle_fbhw_term'
,
...
...
wrappers/python/openmm/app/internal/amber_file_parser.py
View file @
82703dff
...
@@ -697,7 +697,7 @@ def readAmberSystem(topology, prmtop_filename=None, prmtop_loader=None, shake=No
...
@@ -697,7 +697,7 @@ def readAmberSystem(topology, prmtop_filename=None, prmtop_loader=None, shake=No
scee (float) - 1-4 electrostatics scaling factor (default: taken from prmtop or 2.0 if not present there)
scee (float) - 1-4 electrostatics scaling factor (default: taken from prmtop or 2.0 if not present there)
mm - if specified, this module will be used in place of pyopenmm (default: None)
mm - if specified, this module will be used in place of pyopenmm (default: None)
verbose (boolean) - if True, print out information on progress (default: False)
verbose (boolean) - if True, print out information on progress (default: False)
flexibleConstraints (boolean) - if True, flexible bonds will be added in addition
o
t constrained bonds
flexibleConstraints (boolean) - if True, flexible bonds will be added in addition t
o
constrained bonds
rigidWater (boolean=True) If true, water molecules will be fully rigid regardless of the value passed for the shake argument
rigidWater (boolean=True) If true, water molecules will be fully rigid regardless of the value passed for the shake argument
sasaMethod (str='ACE') The string representing the SA model to use for GB calculations. Must be 'ACE', 'LCPO', or None
sasaMethod (str='ACE') The string representing the SA model to use for GB calculations. Must be 'ACE', 'LCPO', or None
...
...
wrappers/python/openmm/app/internal/amoebaforces.py
View file @
82703dff
...
@@ -280,7 +280,7 @@ class AmoebaBondForceBuilder(BaseAmoebaForceBuilder):
...
@@ -280,7 +280,7 @@ class AmoebaBondForceBuilder(BaseAmoebaForceBuilder):
bonds : list
bonds : list
List of bonds indices as tuples of (atom1, atom2).
List of bonds indices as tuples of (atom1, atom2).
isConstrained : list
isConstrained : list
List of flags indicating if a given bond is constrain
t
ed.
List of flags indicating if a given bond is constrained.
flexibleConstraints : bool
flexibleConstraints : bool
If True, constrained bonds will still be added to the system.
If True, constrained bonds will still be added to the system.
"""
"""
...
@@ -426,7 +426,7 @@ class AmoebaAngleForceBuilder(BaseAmoebaForceBuilder):
...
@@ -426,7 +426,7 @@ class AmoebaAngleForceBuilder(BaseAmoebaForceBuilder):
angles : List[Tuple[int, int, int]]
angles : List[Tuple[int, int, int]]
List of angle indices as tuples of (atom1, atom2, atom3).
List of angle indices as tuples of (atom1, atom2, atom3).
anglesConstraints : Optional[list]
anglesConstraints : Optional[list]
List of flags indicating if a given angle is constrain
t
ed.
List of flags indicating if a given angle is constrained.
flexibleConstraints : bool
flexibleConstraints : bool
If True, constrained angles will still be added to the system.
If True, constrained angles will still be added to the system.
"""
"""
...
@@ -545,7 +545,7 @@ class AmoebaInPlaneAngleForceBuilder(BaseAmoebaForceBuilder):
...
@@ -545,7 +545,7 @@ class AmoebaInPlaneAngleForceBuilder(BaseAmoebaForceBuilder):
inPlaneAngles : List[Tuple[int, int, int, int]]
inPlaneAngles : List[Tuple[int, int, int, int]]
List of in-plane angle indices as tuples of (atom1, atom2, atom3, atom4).
List of in-plane angle indices as tuples of (atom1, atom2, atom3, atom4).
anglesConstraints : Optional[list]
anglesConstraints : Optional[list]
List of flags indicating if a given angle is constrain
t
ed.
List of flags indicating if a given angle is constrained.
flexibleConstraints : bool
flexibleConstraints : bool
If True, constrained angles will still be added to the system.
If True, constrained angles will still be added to the system.
"""
"""
...
...
wrappers/python/openmm/app/internal/pdbstructure.py
View file @
82703dff
"""
"""
pdbstructure.py: Used for managing PDB formated files.
pdbstructure.py: Used for managing PDB format
t
ed files.
This is part of the OpenMM molecular simulation toolkit.
This is part of the OpenMM molecular simulation toolkit.
See https://openmm.org/development.
See https://openmm.org/development.
...
@@ -890,7 +890,7 @@ class Atom(object):
...
@@ -890,7 +890,7 @@ class Atom(object):
if
alternate_location_indicator
is
None
:
if
alternate_location_indicator
is
None
:
alternate_location_indicator
=
self
.
alternate_location_indicator
alternate_location_indicator
=
self
.
alternate_location_indicator
# produce PDB line in three parts: names, numbers, and end
# produce PDB line in three parts: names, numbers, and end
# Accomodate 4-character residue names that use column 21
# Accom
m
odate 4-character residue names that use column 21
long_res_name
=
self
.
residue_name_with_spaces
long_res_name
=
self
.
residue_name_with_spaces
if
len
(
long_res_name
)
==
3
:
if
len
(
long_res_name
)
==
3
:
long_res_name
+=
" "
long_res_name
+=
" "
...
...
wrappers/python/openmm/app/internal/pdbx/reader/PdbxContainers.py
View file @
82703dff
...
@@ -23,7 +23,7 @@ A base container class is defined which supports common features of
...
@@ -23,7 +23,7 @@ A base container class is defined which supports common features of
data and definition containers. PDBx data files are organized in
data and definition containers. PDBx data files are organized in
sections called data blocks which are mapped to data containers.
sections called data blocks which are mapped to data containers.
PDBx dictionaries contain definition sections and data sections
PDBx dictionaries contain definition sections and data sections
which are mapped to definition and data containes respectively.
which are mapped to definition and data containe
r
s respectively.
Data in both PDBx data files and dictionaries are organized in
Data in both PDBx data files and dictionaries are organized in
data categories. In the PDBx syntax individual items or data
data categories. In the PDBx syntax individual items or data
...
...
wrappers/python/openmm/app/internal/pdbx/reader/PdbxParser.py
View file @
82703dff
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
#
#
# 2009-11-05 - (jdw) Change table storage architecture for list of
# 2009-11-05 - (jdw) Change table storage architecture for list of
# dictionaries to list of lists.
# dictionaries to list of lists.
# 2012-01-09 - (jdw) This module now obsolted by PdbxReader/PdbxWriter
# 2012-01-09 - (jdw) This module now obsol
e
ted by PdbxReader/PdbxWriter
# modules. APIs are preserved.
# modules. APIs are preserved.
#
#
# 2012-09-01 - (jdw) Revise tokenizer to better handle embedded quoting.
# 2012-09-01 - (jdw) Revise tokenizer to better handle embedded quoting.
...
@@ -334,7 +334,7 @@ class PdbxReader(object):
...
@@ -334,7 +334,7 @@ class PdbxReader(object):
curCatName
,
curAttName
,
curQuotedString
,
curWord
=
next
(
tokenizer
)
curCatName
,
curAttName
,
curQuotedString
,
curWord
=
next
(
tokenizer
)
elif
state
==
"ST_UNKNOWN"
:
elif
state
==
"ST_UNKNOWN"
:
self
.
__syntaxError
(
"Unrecogized syntax element: "
+
str
(
curWord
))
self
.
__syntaxError
(
"Unrecog
n
ized syntax element: "
+
str
(
curWord
))
return
return
...
@@ -532,7 +532,7 @@ class PdbxWriter(object):
...
@@ -532,7 +532,7 @@ class PdbxWriter(object):
if
len
(
objL
)
==
0
:
if
len
(
objL
)
==
0
:
continue
continue
# Item - value formatt
t
ing
# Item - value formatting
elif
len
(
objL
)
==
1
:
elif
len
(
objL
)
==
1
:
self
.
__writeItemValueFormat
(
obj
)
self
.
__writeItemValueFormat
(
obj
)
...
...
wrappers/python/openmm/app/internal/pdbx/reader/PdbxReader.py
View file @
82703dff
...
@@ -323,7 +323,7 @@ class PdbxReader(object):
...
@@ -323,7 +323,7 @@ class PdbxReader(object):
curCatName
,
curAttName
,
curQuotedString
,
curWord
=
next
(
tokenizer
)
curCatName
,
curAttName
,
curQuotedString
,
curWord
=
next
(
tokenizer
)
elif
state
==
"ST_UNKNOWN"
:
elif
state
==
"ST_UNKNOWN"
:
self
.
__syntaxError
(
"Unrecogized syntax element: "
+
str
(
curWord
))
self
.
__syntaxError
(
"Unrecog
n
ized syntax element: "
+
str
(
curWord
))
return
return
...
...
wrappers/python/openmm/app/internal/pdbx/writer/PdbxWriter.py
View file @
82703dff
...
@@ -75,7 +75,7 @@ class PdbxWriter(object):
...
@@ -75,7 +75,7 @@ class PdbxWriter(object):
if
len
(
objL
)
==
0
:
if
len
(
objL
)
==
0
:
continue
continue
# Item - value formatt
t
ing
# Item - value formatting
elif
len
(
objL
)
==
1
:
elif
len
(
objL
)
==
1
:
self
.
__writeItemValueFormat
(
obj
)
self
.
__writeItemValueFormat
(
obj
)
...
...
wrappers/python/openmm/app/tinkerfiles.py
View file @
82703dff
...
@@ -10,7 +10,7 @@ Contributors: Peter Eastman
...
@@ -10,7 +10,7 @@ Contributors: Peter Eastman
Permission is hereby granted, free of charge, to any person obtaining a
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, includ
ing without limitation
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
Software is furnished to do so, subject to the following conditions:
...
...
wrappers/python/openmm/unit/mymatrix.py
View file @
82703dff
...
@@ -223,7 +223,7 @@ class MyMatrix(MyVector):
...
@@ -223,7 +223,7 @@ class MyMatrix(MyVector):
n
=
len
(
rhs
[
0
])
n
=
len
(
rhs
[
0
])
r
=
len
(
rhs
)
r
=
len
(
rhs
)
if
self
.
numCols
()
!=
r
:
if
self
.
numCols
()
!=
r
:
raise
ArithmeticError
(
"Matrix multplication size mismatch (%d vs %d)"
%
(
self
.
numCols
(),
r
))
raise
ArithmeticError
(
"Matrix mult
i
plication size mismatch (%d vs %d)"
%
(
self
.
numCols
(),
r
))
result
=
zeros
(
m
,
n
)
result
=
zeros
(
m
,
n
)
for
i
in
range
(
m
):
for
i
in
range
(
m
):
for
j
in
range
(
n
):
for
j
in
range
(
n
):
...
...
wrappers/python/openmm/unit/prefix.py
View file @
82703dff
...
@@ -144,7 +144,7 @@ def define_prefixed_units(base_unit, module = sys.modules[__name__]):
...
@@ -144,7 +144,7 @@ def define_prefixed_units(base_unit, module = sys.modules[__name__]):
new_unit
=
Unit
({
new_base_unit
:
1.0
})
new_unit
=
Unit
({
new_base_unit
:
1.0
})
# Create base_unit attribute, needed for creating UnitSystems
# Create base_unit attribute, needed for creating UnitSystems
module
.
__dict__
[
name
+
'_base_unit'
]
=
new_base_unit
# e.g. "kilometer_base_unit"
module
.
__dict__
[
name
+
'_base_unit'
]
=
new_base_unit
# e.g. "kilometer_base_unit"
# Create attribue in this module
# Create attribu
t
e in this module
module
.
__dict__
[
name
]
=
new_unit
# e.g. "kilometer"
module
.
__dict__
[
name
]
=
new_unit
# e.g. "kilometer"
# And plural version
# And plural version
module
.
__dict__
[
name
+
's'
]
=
new_unit
# e.g. "kilometers"
module
.
__dict__
[
name
+
's'
]
=
new_unit
# e.g. "kilometers"
...
...
wrappers/python/openmm/unit/quantity.py
View file @
82703dff
...
@@ -151,10 +151,10 @@ class Quantity(object):
...
@@ -151,10 +151,10 @@ class Quantity(object):
if
isinstance
(
value
,
numpy
.
ndarray
):
if
isinstance
(
value
,
numpy
.
ndarray
):
value
=
numpy
.
array
(
new_container
.
_value
)
value
=
numpy
.
array
(
new_container
.
_value
)
else
:
else
:
# delegate contruction to container class from list
# delegate con
s
truction to container class from list
value
=
value
.
__class__
(
new_container
.
_value
)
value
=
value
.
__class__
(
new_container
.
_value
)
except
ImportError
:
except
ImportError
:
# delegate contruction to container class from list
# delegate con
s
truction to container class from list
value
=
value
.
__class__
(
new_container
.
_value
)
value
=
value
.
__class__
(
new_container
.
_value
)
else
:
else
:
# Non-Quantity, non container
# Non-Quantity, non container
...
...
wrappers/python/openmm/unit/unit.py
View file @
82703dff
...
@@ -91,7 +91,7 @@ class Unit(object):
...
@@ -91,7 +91,7 @@ class Unit(object):
if
base_unit
not
in
self
.
_all_base_units
[
dim
]:
if
base_unit
not
in
self
.
_all_base_units
[
dim
]:
self
.
_all_base_units
[
dim
][
base_unit
]
=
0
self
.
_all_base_units
[
dim
][
base_unit
]
=
0
self
.
_all_base_units
[
dim
][
base_unit
]
+=
exponent1
*
exponent2
self
.
_all_base_units
[
dim
][
base_unit
]
+=
exponent1
*
exponent2
# What about heterogenous units that cancel? --> leave them
# What about heterogen
e
ous units that cancel? --> leave them
self
.
_scaled_units
.
sort
()
self
.
_scaled_units
.
sort
()
def
create_unit
(
self
,
scale
,
name
,
symbol
):
def
create_unit
(
self
,
scale
,
name
,
symbol
):
...
@@ -466,7 +466,7 @@ class Unit(object):
...
@@ -466,7 +466,7 @@ class Unit(object):
def
get_name
(
self
):
def
get_name
(
self
):
"""
"""
Returns a unit name (string) for this Unit, composed of its various
Returns a unit name (string) for this Unit, composed of its various
BaseUnit symbols. e.g. 'kilogram meter**2 secon**-1'.
BaseUnit symbols. e.g. 'kilogram meter**2 secon
d
**-1'.
"""
"""
try
:
try
:
return
self
.
_name
return
self
.
_name
...
...
wrappers/python/src/swig_doxygen/swigInputBuilder.py
View file @
82703dff
#!/usr/bin/env python
#!/usr/bin/env python
"""Build swig i
m
put file from xml encoded header files (see gccxml)."""
"""Build swig i
n
put file from xml encoded header files (see gccxml)."""
__author__
=
"Randall J. Radmer"
__author__
=
"Randall J. Radmer"
__version__
=
"1.0"
__version__
=
"1.0"
...
...
wrappers/python/src/swig_doxygen/swigInputConfig.py
View file @
82703dff
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# Add base classes missing from the XML input file
# Add base classes missing from the XML input file
MISSING_BASE_CLASSES
=
{
'OpenMMException'
:
'std::exception'
}
MISSING_BASE_CLASSES
=
{
'OpenMMException'
:
'std::exception'
}
# Doc strings to replace some
f
o the confusing ones genera
g
ed by swig
# Doc strings to replace some o
f
the confusing ones genera
t
ed by swig
# Indexed by (className, methodName)
# Indexed by (className, methodName)
DOC_STRINGS
=
{(
"Context"
,
"setPositions"
)
:
DOC_STRINGS
=
{(
"Context"
,
"setPositions"
)
:
"setPositions(self, positions)"
,
"setPositions(self, positions)"
,
...
...
wrappers/python/tests/TestAPIUnits.py
View file @
82703dff
...
@@ -1258,7 +1258,7 @@ class TestAPIUnits(unittest.TestCase):
...
@@ -1258,7 +1258,7 @@ class TestAPIUnits(unittest.TestCase):
integrator
.
setRelativeCollisionFrequency
(
0.1
/
picosecond
)
integrator
.
setRelativeCollisionFrequency
(
0.1
/
picosecond
)
self
.
assertEqual
(
integrator
.
getRelativeCollisionFrequency
(),
0.1
/
picosecond
)
self
.
assertEqual
(
integrator
.
getRelativeCollisionFrequency
(),
0.1
/
picosecond
)
# Test bare consructor and addThermostat
# Test bare cons
t
ructor and addThermostat
integrator
=
NoseHooverIntegrator
(
1
*
femtosecond
)
integrator
=
NoseHooverIntegrator
(
1
*
femtosecond
)
self
.
assertEqual
(
integrator
.
getStepSize
(),
1
*
femtosecond
)
self
.
assertEqual
(
integrator
.
getStepSize
(),
1
*
femtosecond
)
...
...
Prev
1
2
Next
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