Commit 5df263d5 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added .copy() t make sure metadata.band_meta is really copied.

parent c4e43794
Pipeline #3082 passed with stages
in 1 minute and 23 seconds
......@@ -206,6 +206,8 @@ class GDAL_Metadata(object):
raise TypeError(bands2extract)
meta_sub.band_meta = self.band_meta.copy()
for k, v in meta_sub.band_meta.items():
meta_sub.band_meta[k] = list(np.array(v)[bands2extract])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment