Skip to content

Commit

Permalink
Update pre-commit cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnair1 committed Jul 1, 2024
1 parent 9466dda commit 70ed6e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
- kornia>=0.6.9
- lightning>=2.0.9
- matplotlib>=3.8.1
- numpy>=1.22
- numpy>=1.22,<2
- pillow>=10.3.0
- pytest>=6.1.2
- pyvista>=0.34.2
Expand Down
4 changes: 2 additions & 2 deletions tests/datamodules/test_geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(

def __getitem__(self, query: BoundingBox) -> dict[str, Any]:
image = torch.arange(3 * 2 * 2, dtype=torch.float).view(3, 2, 2)
return {"image": image, "crs": CRS.from_epsg(4326), "bbox": query}
return {'image': image, 'crs': CRS.from_epsg(4326), 'bbox': query}

def plot(self, *args: Any, **kwargs: Any) -> Figure:
return plt.figure()
Expand Down Expand Up @@ -68,7 +68,7 @@ def __init__(
self.length = length

def __getitem__(self, index: int) -> dict[str, Tensor]:
return {"image": torch.arange(3 * 2 * 2, dtype=torch.float).view(3, 2, 2)}
return {'image': torch.arange(3 * 2 * 2, dtype=torch.float).view(3, 2, 2)}

def __len__(self) -> int:
return self.length
Expand Down

0 comments on commit 70ed6e2

Please sign in to comment.