Skip to content

Commit

Permalink
avoid downcasting an "integer" float
Browse files Browse the repository at this point in the history
  • Loading branch information
jamartinh committed Nov 30, 2015
1 parent 67a16b7 commit c241701
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions orangecontrib/spark/utils/gui_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def get_usable_value(self):
try:
try:
if float(val) == int(val):
if "." in val:
return float(val)
return int(val)
except ValueError:
return float(val)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
if __name__ == '__main__':
setup(
name = "Orange3-spark",
version = '0.1.7',
version = '0.1.8',
author = 'Jose Antonio Martin H.',
author_email = '[email protected]',
url = 'https://github.com/jamartinh/Orange-Spark',
Expand All @@ -61,7 +61,7 @@
'orangecontrib.spark.widgets.data',
'orangecontrib.spark.widgets.ml'],
package_data = {
'orangecontrib.spark': ['tutorials/*'],
'orangecontrib.spark': ['tutorials/*.ows'],
'orangecontrib.spark.widgets': ['icons/*'],
},
install_requires = ['Orange', 'pandas'],
Expand Down

0 comments on commit c241701

Please sign in to comment.