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
01726081
Commit
01726081
authored
Jan 09, 2012
by
Peter Eastman
Browse files
Fixed bug in Python wrapper generation
parent
f820e172
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wrappers/python/src/swig_doxygen/swigInputBuilder.py
wrappers/python/src/swig_doxygen/swigInputBuilder.py
+3
-3
No files found.
wrappers/python/src/swig_doxygen/swigInputBuilder.py
View file @
01726081
...
...
@@ -413,9 +413,9 @@ class SwigInputBuilder:
valueUnits
=
self
.
configModule
.
UNITS
[
key
]
elif
(
"*"
,
methName
)
in
self
.
configModule
.
UNITS
:
valueUnits
=
self
.
configModule
.
UNITS
[(
"*"
,
methName
)]
elif
methName
.
startswith
(
'get'
)
and
returnType
not
in
(
'void'
,
'int'
,
'std::string'
):
s
=
'do not know how to add units to %s::%s'
\
%
(
shortClassName
,
methName
)
elif
methName
.
startswith
(
'get'
)
and
returnType
not
in
(
'void'
,
'int'
,
'std::string'
,
'const std::string &'
):
s
=
'do not know how to add units to
%s
%s::%s'
\
%
(
returnType
,
shortClassName
,
methName
)
raise
Exception
(
s
)
else
:
valueUnits
=
[
None
,
()]
...
...
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