Skip to content

Commit

Permalink
if parameter is ENUM don't scrape out.whole.ENUM (remove .)
Browse files Browse the repository at this point in the history
  • Loading branch information
spennihana committed Apr 29, 2014
1 parent 91814cb commit 87ffc1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/genSpeeDRFPythonParams.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ def parseValue(v):
float(v)
return float(v)
except ValueError:
if '.' in v:
return v.split('.')[-1]
return v


Expand Down

0 comments on commit 87ffc1a

Please sign in to comment.