Skip to content

Commit

Permalink
resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rijuld committed Feb 27, 2025
1 parent efae346 commit 6607100
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions tests/conf/substation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ data:
batch_size: 1
dict_kwargs:
root: 'tests/data/substation'
bands: [0, 1, 2]
num_of_timepoints: 4
timepoint_aggregation: 'median'
3 changes: 1 addition & 2 deletions tests/datasets/test_substation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import os
import shutil
from pathlib import Path
from typing import Any

import matplotlib.pyplot as plt
import pytest
Expand Down Expand Up @@ -202,4 +201,4 @@ def test_extract(self, tmp_path: Path) -> None:
timepoint_aggregation='median',
num_of_timepoints=4,
root=tmp_path,
)
)
2 changes: 1 addition & 1 deletion torchgeo/datamodules/substation.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def setup(self, stage: str) -> None:
mask_2d=False,
download=True,
checksum=False,
**self.hparams,
**self.kwargs,
)

generator = torch.Generator().manual_seed(0)
Expand Down
1 change: 1 addition & 0 deletions torchgeo/datasets/substation.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Substation(NonGeoDataset):
(i.e., revisits).
Dataset Format:
* .npz file for each datapoint
Dataset Features:
Expand Down

0 comments on commit 6607100

Please sign in to comment.