summaryrefslogtreecommitdiff
path: root/lib/param/float_.py
diff options
context:
space:
mode:
authorpepperpepperpepper <pepper@scannerjammer.com>2015-10-09 15:52:02 -0700
committerpepperpepperpepper <pepper@scannerjammer.com>2015-10-09 15:52:02 -0700
commit42da3b72a8ee7deac3abe238fbdb1591d8d945b9 (patch)
tree004eff4289ff5e01d8d66fbb29942cb2f94f47a9 /lib/param/float_.py
parent0c965a54861e779ca51b235e7a3c2475d8a84dfb (diff)
alright got rid of most relative paths
Diffstat (limited to 'lib/param/float_.py')
-rw-r--r--lib/param/float_.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/param/float_.py b/lib/param/float_.py
deleted file mode 100644
index 46b0b14..0000000
--- a/lib/param/float_.py
+++ /dev/null
@@ -1,24 +0,0 @@
-"""Defines the float param type"""
-from .param import Param
-class Float(Param):
- """Defines the float param type
- Args:
- value: the value of the Float
- classname: the name of the class to which the param belongs
- """
- def __init__(self, value, classname=""):
- self._classname = classname
- super(Float, self).__init__(classname=classname)
- try:
- if value:
- self.value = float(value)
- else:
- self.value = 0.0
- except Exception as e:
- self.err_warn("Not a float: %s" % str(value))
- self.err_warn(str(e))
- def __int__(self):
- return int(self.value)
-
- def __float__(self):
- return float(self.value)