Skip to content

Commit

Permalink
Modest cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxfish committed May 18, 2016
1 parent a2c4457 commit c906e47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions leather/data_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ def infer(cls, v):

raise TypeError('No data type available for %s' % type(v))


class Number(DataType):
"""
Data representing numbers.
"""
types = (int, float, Decimal)


class Text(DataType):
"""
Data representing text/strings.
Expand Down
6 changes: 4 additions & 2 deletions leather/lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ def __init__(self, data, shape):
self._shape = shape

def _validate_dimension(self, dimension, chart_series):
scale = None

"""
Verify all series have the same data types and generate a scale to fit
all the data.
"""
data_type = chart_series[0].types[dimension]

for series in chart_series[1:]:
Expand Down

0 comments on commit c906e47

Please sign in to comment.