Fix name of features for single AP
This commit is contained in:
parent
a70c782931
commit
7c0c52d6f4
@ -36,10 +36,10 @@ def run(gt, rasters, coords, remove,
|
||||
pool.join()
|
||||
eap = sap.concatenate(eap)
|
||||
|
||||
Xn = [' '.join((a['tree']['image_name'],
|
||||
a['attribute'],
|
||||
Xn = [' '.join((a.description['tree']['image_name'],
|
||||
a.description['attribute'],
|
||||
*[str(v) for v in p.values()]))
|
||||
for a in eap.description for p in a['profiles']] if not Xn else Xn
|
||||
for a in eap for p in a.description['profiles']] if not Xn else Xn
|
||||
|
||||
# Create vectors
|
||||
X_raw = np.moveaxis(np.array(list(eap.vectorize())), 0, -1).astype(dtype)
|
||||
|
||||
@ -36,10 +36,10 @@ def run(gt, rasters, coords, remove,
|
||||
pool.join()
|
||||
eap = sap.concatenate(eap)
|
||||
|
||||
Xn = [' '.join((a['tree']['image_name'],
|
||||
a['attribute'],
|
||||
Xn = [' '.join((a.description['tree']['image_name'],
|
||||
a.description['attribute'],
|
||||
*[str(v) for v in p.values()]))
|
||||
for a in eap.description for p in a['profiles']] if not Xn else Xn
|
||||
for a in eap for p in a.description['profiles']] if not Xn else Xn
|
||||
|
||||
# Create vectors
|
||||
X_raw = np.moveaxis(np.array(list(eap.vectorize())), 0, -1).astype(dtype)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user