Skip to content

Commit 81de1d9

Browse files
committed
fixing more tests
1 parent fbf2810 commit 81de1d9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/test_losses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ def setUp(self):
8787
self.params.img_shape_y = self.img_shape_y
8888
self.params.img_local_shape_x = self.params.img_crop_shape_x = self.params.img_shape_x
8989
self.params.img_local_shape_y = self.params.img_crop_shape_y = self.params.img_shape_y
90-
self.params.img_local_offset_x = self.params.img_crop_offset_x = 0
91-
self.params.img_local_offset_y = self.params.img_crop_offset_y = 0
9290
self.params.img_shape_x_resampled = self.params.img_shape_x
9391
self.params.img_shape_y_resampled = self.params.img_shape_y
92+
self.params.img_local_offset_x = self.params.img_crop_offset_x = 0
93+
self.params.img_local_offset_y = self.params.img_crop_offset_y = 0
9494

9595
# also set the batch size for testing
9696
self.params.batch_size = 4

tests/test_metrics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,8 @@ def setUp(self):
470470
self.params.img_shape_y = 32
471471
self.params.img_local_shape_x = self.params.img_crop_shape_x = self.params.img_shape_x
472472
self.params.img_local_shape_y = self.params.img_crop_shape_y = self.params.img_shape_y
473+
self.params.img_shape_x_resampled = self.params.img_shape_x
474+
self.params.img_shape_y_resampled = self.params.img_shape_y
473475
self.params.img_local_offset_x = 0
474476
self.params.img_local_offset_y = 0
475477
self.params.img_crop_offset_x = 0

0 commit comments

Comments
 (0)