summaryrefslogtreecommitdiff
path: root/Param/Int/__init__.py
diff options
context:
space:
mode:
authoryo mama <pepper@scannerjammer.com>2015-09-21 14:20:13 -0700
committeryo mama <pepper@scannerjammer.com>2015-09-21 14:20:13 -0700
commitb29b0ec5f11dd66434cbdfba5287c4777d7f8ac9 (patch)
treef02f45661bdab855d8392e14ba6448546586bf37 /Param/Int/__init__.py
parent8f2230b7c866320e3839d6812b98b8370a7ec5d9 (diff)
new file structure
Diffstat (limited to 'Param/Int/__init__.py')
-rw-r--r--Param/Int/__init__.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/Param/Int/__init__.py b/Param/Int/__init__.py
deleted file mode 100644
index 0a73cc1..0000000
--- a/Param/Int/__init__.py
+++ /dev/null
@@ -1,18 +0,0 @@
-from Param import Param
-
-class ParamInt(Param):
- def __init__(self, value, classname=""):
- super(ParamInt, self).__init__(classname=classname)
- try:
- if value:
- self.value = int(value)
- else:
- self.value = 0
- except Exception as e:
- self.err_warn("Not an int: %s" % str(value))
- self.err_warn(str(e))
- def __int__(self):
- return int(self.value)
-
- def __float__(self):
- return float(self.value)