From b085cac794af1fd5cdac281d1d4eba4c06b88510 Mon Sep 17 00:00:00 2001 From: kweise Date: Tue, 9 Apr 2024 09:35:49 +0200 Subject: [PATCH] [UPD] - removed fastmat as dependency from setup.py and GPC.py and MEGPC.py --- pygpc/GPC.py | 6 +++++- pygpc/MEGPC.py | 5 ++++- setup.py | 1 - 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pygpc/GPC.py b/pygpc/GPC.py index b1ba17ae..bd3201a5 100755 --- a/pygpc/GPC.py +++ b/pygpc/GPC.py @@ -1,5 +1,4 @@ import numpy as np -import fastmat as fm import scipy.stats import copy import h5py @@ -25,6 +24,11 @@ except ImportError: pass +try: + import fastmat as fm +except ImportError: + pass + class GPC(object): """ diff --git a/pygpc/MEGPC.py b/pygpc/MEGPC.py index 85404479..9667f7b3 100755 --- a/pygpc/MEGPC.py +++ b/pygpc/MEGPC.py @@ -1,5 +1,4 @@ import numpy as np -import fastmat as fm import scipy.stats import copy import h5py @@ -20,6 +19,10 @@ from .Grid import * from .SGPC import * +try: + import fastmat as fm +except ImportError: + pass class MEGPC(object): """ diff --git a/setup.py b/setup.py index 300d4547..59dc9735 100755 --- a/setup.py +++ b/setup.py @@ -59,7 +59,6 @@ # 'julia'], install_requires=['scipy', 'numpy', - 'fastmat', 'scikit-learn', 'h5py', 'tqdm',