Skip to content

Commit

Permalink
Fix linting?
Browse files Browse the repository at this point in the history
  • Loading branch information
KerekesDavid committed Sep 10, 2024
1 parent 1e2310e commit 0b599f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ jobs:
with:
python-version: "3.10"

- name: Lint with flake8
- run: pip install flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Create environment with mamba
uses: conda-incubator/setup-miniconda@v3
with:
Expand All @@ -54,13 +62,6 @@ jobs:
run: |
mamba env export
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
python -m unittest tests.test_imports
13 changes: 1 addition & 12 deletions datasets/biomassters.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,4 @@ def get_splits(dataset_config):

@staticmethod
def download(dataset_config:dict, silent=False):
pass


if __name__ == '__main__':

dataset = BioMassters(cfg, split = "test")

train_dict = dataset.__getitem__(0)

print(train_dict["image"]["optical"].shape)
print(train_dict["image"]["sar"].shape)
print(train_dict["target"].shape)
pass

0 comments on commit 0b599f0

Please sign in to comment.