Mercurial Hosting > traffic-intelligence
changeset 669:df6be882f325
bug corrected
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 26 May 2015 11:35:24 +0200 |
parents | f8dcf483b296 |
children | f72ed51c6b65 |
files | python/utils.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/python/utils.py Tue May 26 11:19:03 2015 +0200 +++ b/python/utils.py Tue May 26 11:35:24 2015 +0200 @@ -425,7 +425,7 @@ '''Generates all possible models for including or not each independent variable''' experiments = {} nIndependentVariables = len(independentVariables) - if nIndependentVariables != len(np.unique(independentVariables)): + if nIndependentVariables != len(set(independentVariables)): print("Duplicate variables. Exiting") import sys sys.exit()