From b441372ecdbe110313720eea45d7e4833a279b24 Mon Sep 17 00:00:00 2001 From: Erfan Nourbakhsh Date: Mon, 8 Jun 2020 22:11:40 -0700 Subject: [PATCH] Fixed numpy FutureWarning Solving the following issue: > import skgof /usr/local/anaconda3/lib/python3.7/site-packages/skgof/ecdfgof.py:45: FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future. from .cvmdist import cvm_unif --- skgof/vect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skgof/vect.py b/skgof/vect.py index 1a0a32d..aab3ba9 100644 --- a/skgof/vect.py +++ b/skgof/vect.py @@ -55,6 +55,6 @@ def varange(starts, count): [3, 4, 5, 6, 7]]) """ try: - return stack(arange(s, s + count) for s in starts) + return stack([arange(s, s + count) for s in starts]) except TypeError: return arange(starts, starts + count)