Skip to content

Commit

Permalink
Merge pull request #7 from rtobar/master
Browse files Browse the repository at this point in the history
Python 3 compatibility bits
  • Loading branch information
CharlesMasson authored Sep 23, 2019
2 parents 5d19488 + f33620a commit aee723c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddsketch/ddsketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import numpy as np

from store import Store
from .store import Store


DEFAULT_ALPHA = 0.01
Expand All @@ -27,7 +27,7 @@ def __init__(self, alpha=None, bin_limit=None, min_value=None):
alpha = DEFAULT_ALPHA
if bin_limit is None or bin_limit < 0:
bin_limit = DEFAULT_BIN_LIMIT
if min_value < 0:
if min_value is None or min_value < 0:
min_value = DEFAULT_MIN_VALUE

self.gamma = 1 + 2*alpha/(1-alpha)
Expand Down

0 comments on commit aee723c

Please sign in to comment.