Permalink
Browse files

Add `integer`. How was this missing?

  • Loading branch information...
1 parent 144e920 commit a5f81b80253692c0a76c017fac4a255aa4e68276 Luis Pedro Coelho committed Apr 26, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 milksets/vtypes.py
View
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2010, Luis Pedro Coelho <lpc@cmu.edu>
+# vim: set ts=4 sts=4 sw=4 expandtab smartindent:
# Software Distributed under the MIT License
'''
@@ -12,6 +13,7 @@
| |-ordinal
| | |- ordinalrange
| | - boolean
+ | | - integer
| -continuous
- categorical
- boolean
@@ -40,6 +42,9 @@ def __init__(self,name,max,min):
self.max = max
self.min = min
+class integer(ordinal):
+ pass
+
class categorical(vtype):
def __init__(self,name, categories):
vtype.__init__(self,name)
@@ -50,4 +55,3 @@ def __init__(self,name):
vtype.__init__(self,name)
-# vim: set ts=4 sts=4 sw=4 expandtab smartindent:

0 comments on commit a5f81b8

Please sign in to comment.