Skip to content

Commit

Permalink
fixing black error
Browse files Browse the repository at this point in the history
  • Loading branch information
SallyElHajjar committed Nov 27, 2024
1 parent a1e1eb4 commit d7ec502
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions usl_models/tests/atmo_ml/dataset_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,15 @@ def test_load_dataset_structure(self, mock_storage_client):
"spatial": (B, H, W, F_S),
"lu_index": (B, H, W),
}
] * num_batches,
]
* num_batches,
)
self.assertShapesRecursive(
list(labels),
[
(B, T_O, H, W, C),
] * num_batches,
]
* num_batches,
)

@mock.patch("google.cloud.storage.Client")
Expand Down
1 change: 1 addition & 0 deletions usl_models/usl_models/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

class TestCase(unittest.TestCase):
"""Testing utils."""

def assertShapesRecursive(self, obj: object, expected: object, path: str = ""):
"""Recursively checks the shapes of numpy arrays in a data structure."""
if isinstance(obj, np.ndarray) or tf.is_tensor(obj):
Expand Down

0 comments on commit d7ec502

Please sign in to comment.