Skip to content
Browse files

[sim] when getting a variable, replace ' ' with '_'

not the other way around
  • Loading branch information...
1 parent 554c677 commit 8b91b54e81109a4908b0a24091e04060eeda7488 @bpowers committed Jan 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 opensim/engine/simulator.py
View
2 opensim/engine/simulator.py
@@ -301,7 +301,7 @@ def get_var(self, var_name):
Get a reference to a variable from the current model.
'''
- var_name = var_name.replace('_', ' ')
+ var_name = var_name.replace(' ', '_')
if not self.__vars.has_key(var_name):
log.error('tried to get non-existant variable "%s"' % var_name)

0 comments on commit 8b91b54

Please sign in to comment.
Something went wrong with that request. Please try again.