diff --git a/GANDLF/data/patch_miner/opm/patch_manager.py b/GANDLF/data/patch_miner/opm/patch_manager.py index d32e769b5..abb39cf37 100644 --- a/GANDLF/data/patch_miner/opm/patch_manager.py +++ b/GANDLF/data/patch_miner/opm/patch_manager.py @@ -7,7 +7,7 @@ from tqdm import tqdm from pathlib import Path import pandas as pd -import tiffslide +import openslide as tiffslide class PatchManager: diff --git a/GANDLF/data/patch_miner/opm/utils.py b/GANDLF/data/patch_miner/opm/utils.py index 1bee9b1f1..01387d325 100644 --- a/GANDLF/data/patch_miner/opm/utils.py +++ b/GANDLF/data/patch_miner/opm/utils.py @@ -17,7 +17,7 @@ # import matplotlib.pyplot as plt import yaml -import tiffslide +import openslide as tiffslide # RGB Masking (pen) constants RGB_RED_CHANNEL = 0 diff --git a/setup.py b/setup.py index 2e7a720dd..82508ce9b 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,7 @@ import sys, re, os from setuptools import setup, find_packages + try: with open("README.md") as readme_file: readme = readme_file.read() @@ -13,7 +14,6 @@ readme = "No README information found." sys.stderr.write("Warning: Could not open '%s' due %s\n" % ("README.md", error)) - try: filepath = "GANDLF/version.py" version_file = open(filepath)