From 24c5ac075a8ddbbb94de38fd2db3b9695c316840 Mon Sep 17 00:00:00 2001 From: HaleySchuhl Date: Mon, 15 Apr 2024 17:01:58 -0500 Subject: [PATCH] remove redundant code --- plantcv/geospatial/read_geotif.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plantcv/geospatial/read_geotif.py b/plantcv/geospatial/read_geotif.py index d71f218..93bd3a3 100644 --- a/plantcv/geospatial/read_geotif.py +++ b/plantcv/geospatial/read_geotif.py @@ -1,6 +1,7 @@ import rasterio import numpy as np from plantcv.plantcv import fatal_error +from plantcv.plantcv.hyperspectral.read_data import _make_pseudo_rgb from plantcv.plantcv.plot_image import plot_image from plantcv.plantcv.classes import Spectral_data @@ -58,11 +59,6 @@ def read_geotif(filename, bands="R,G,B"): wavelength_units="nm", array_type="datacube", pseudo_rgb=None, filename=filename, default_bands=None) - # Make pseudo RGB image for visualization - pseudo_rgb = spectral_array.array_data[:, :, :3] - pseudo_rgb = pseudo_rgb ** (1 / 2.2) - spectral_array.pseudo_rgb = pseudo_rgb - pseudo_rgb = _make_pseudo_rgb(spectral_array) pseudo_rgb = pseudo_rgb.astype('float32') plot_image(img=pseudo_rgb) # Replace with _debug