galaxy-dist commit 9d9f0de20f4f: Make default initial value for Integer and Float parameters None.
# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User Dan Blankenberg <dan@bx.psu.edu> # Date 1287683139 14400 # Node ID 9d9f0de20f4f9da28d53be38411b1ee1075201a1 # Parent 151d007da2f4709ba546cd5cc76738e28b64e05d Make default initial value for Integer and Float parameters None. --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -212,7 +212,7 @@ class IntegerToolParameter( TextToolPara if self.value: return int( self.value ) else: - return 0 + return None class FloatToolParameter( TextToolParameter ): """ @@ -254,7 +254,7 @@ class FloatToolParameter( TextToolParame try: return float( self.value ) except: - return float( 0 ) + return None class BooleanToolParameter( ToolParameter ): """
participants (1)
-
commits-noreply@bitbucket.org