From 93d42955aa08ba53ffa9d83fc7cb9da25cbe34db Mon Sep 17 00:00:00 2001 From: ejohnson643 Date: Tue, 28 Dec 2021 10:37:53 -0600 Subject: [PATCH] Fixed bug where scanpy was being called at top of module instead of just in niche loading functions. --- EMBEDR/utility.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EMBEDR/utility.py b/EMBEDR/utility.py index ebbd5ff..23a0598 100644 --- a/EMBEDR/utility.py +++ b/EMBEDR/utility.py @@ -2,7 +2,6 @@ import numpy as np import os import pandas as pd -import scanpy as sc from time import time ############################################################################### @@ -40,6 +39,8 @@ def load_data(data_name, dtype=float, load_metadata=True): + import scanpy as sc + metadata = None if data_name.lower() == 'mnist':