Skip to content

Commit 6cf0a28

Browse files
Update deepsensor/model/model.py
Co-authored-by: David Wilby <[email protected]>
1 parent 58e9076 commit 6cf0a28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deepsensor/model/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,8 @@ def stitch_clipped_predictions(
938938
# Iterate through patchwise predictions and slice edges prior to stitchin.
939939
patches_clipped = []
940940
for i, patch_pred in enumerate(patch_preds):
941-
first_key, first_value = next(iter(patch_pred.items()))
941+
# get one variable name to use for coordinates and extent
942+
first_key = list(patch_pred.keys())[0]
942943
# Get row/col index values of each patch.
943944
patch_x1_coords, patch_x2_coords= get_coordinate_extent(patch_pred[first_key], x1_ascend, x2_ascend)
944945
patch_x1_index, patch_x2_index = get_index(patch_x1_coords, patch_x2_coords)

0 commit comments

Comments
 (0)