From 5572868b2bcf0f6614acc68bcdb12f8624219f7d Mon Sep 17 00:00:00 2001 From: tgoelles Date: Mon, 4 Sep 2023 13:28:31 +0000 Subject: [PATCH] delted unused imshow --- src/specarray/specarray.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/specarray/specarray.py b/src/specarray/specarray.py index 7b6e450..f3e46a9 100644 --- a/src/specarray/specarray.py +++ b/src/specarray/specarray.py @@ -8,7 +8,6 @@ import xarray as xr import pandas as pd from numpy import ndarray -from spectral import imshow import dask.array as da import numpy as np @@ -37,8 +36,8 @@ def __post_init__(self): spectral_data = self._load_spectral_data(mode=mode) data_array = self._create_data_array(spectral_data, mode) setattr(self, mode, data_array) - except Exception as e: - print(f"An error occurred reading {mode}: {e}") + except Exception as exception: + print(f"An error occurred reading {mode}: {exception}") def __len__(self): """Return the number of records"""