Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions io/eolearn/io/sentinelhub_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import numpy as np

from sentinelhub import (
Band,
BBox,
DataCollection,
Geometry,
Expand All @@ -29,7 +28,6 @@
SentinelHubRequest,
SentinelHubSession,
SHConfig,
Unit,
bbox_to_dimensions,
filter_times,
parse_time_interval,
Expand Down Expand Up @@ -79,7 +77,7 @@ def __init__(
self.resolution = resolution
self.config = config or SHConfig()
self.max_threads = max_threads
self.data_collection = DataCollection(data_collection)
self.data_collection: DataCollection = DataCollection(data_collection)
self.cache_folder = cache_folder
self.session_loader = session_loader
self.upsampling = upsampling
Expand Down Expand Up @@ -474,8 +472,6 @@ def _parse_requested_bands(self, bands, available_bands):
for band_name in bands:
if band_name in band_info_dict:
requested_bands.append(band_info_dict[band_name])
elif self.data_collection.is_batch or self.data_collection.is_byoc:
requested_bands.append(Band(band_name, (Unit.DN,), (np.float32,)))
else:
raise ValueError(
f"Data collection {self.data_collection} does not have specifications for {band_name}."
Expand Down