Skip to content

Commit b4e9ff5

Browse files
committed
move coord direction calcuation to where it is needed
1 parent 322766f commit b4e9ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepsensor/data/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ def __init__(
191191
) = self.infer_context_and_target_var_IDs()
192192

193193
self.coord_bounds = self._compute_global_coordinate_bounds()
194-
self.coord_directions = self._compute_x1x2_direction()
195194

196195
def _set_config(self):
197196
"""Instantiate a config dictionary for the TaskLoader object."""
@@ -1449,6 +1448,7 @@ def sample_sliding_window(
14491448
List[float]
14501449
Sequence of patch spatial extent as [x1_min, x1_max, x2_min, x2_max].
14511450
"""
1451+
self.coord_directions = self._compute_x1x2_direction()
14521452
# define patch size in x1/x2
14531453
size = {}
14541454
size["x1"], size["x2"] = patch_size

0 commit comments

Comments
 (0)