Skip to content

Commit

Permalink
New formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
BSchilperoort committed Jul 10, 2024
1 parent 33c5cd9 commit 0e654c9
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/zampy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""zampy."""

from zampy import datasets


Expand Down
1 change: 1 addition & 0 deletions src/zampy/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implements CLI interface for Zampy."""

from pathlib import Path
import click
import dask.distributed
Expand Down
1 change: 1 addition & 0 deletions src/zampy/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Datasets implementations."""

from zampy.datasets import dataset_protocol
from zampy.datasets import validation
from zampy.datasets.catalog import DATASETS
Expand Down
1 change: 1 addition & 0 deletions src/zampy/datasets/catalog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Catalog of datasets."""

from zampy.datasets import dataset_protocol
from zampy.datasets.cams import CAMS
from zampy.datasets.era5 import ERA5
Expand Down
1 change: 1 addition & 0 deletions src/zampy/datasets/converter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Dataset formatter for different conventions."""

import json
import warnings
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/zampy/datasets/dataset_protocol.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Outline of the dataset protocol."""

import json
import shutil
from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions src/zampy/datasets/eth_canopy_height.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ETH canopy height dataset."""

import gzip
from pathlib import Path
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions src/zampy/datasets/prism_dem.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Prism DEM dataset."""

import gzip
import tarfile
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/zampy/datasets/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Shared utilities from datasets."""

import urllib.request
from pathlib import Path
import requests
Expand Down
1 change: 1 addition & 0 deletions src/zampy/datasets/validation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Checks for user input validation."""

from pathlib import Path
from zampy.datasets.dataset_protocol import Dataset
from zampy.datasets.dataset_protocol import SpatialBounds
Expand Down
3 changes: 2 additions & 1 deletion src/zampy/recipe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""""All functionality to read and execute Zampy recipes."""
""" "All functionality to read and execute Zampy recipes."""

from pathlib import Path
from typing import Any
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions src/zampy/reference/variables.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Variable reference for Zampy."""

from pint import UnitRegistry
from zampy.datasets.dataset_protocol import Variable

Expand Down
1 change: 1 addition & 0 deletions tests/test_data/fapar-lai/generate_fake_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Generate fake data for the fapar-lai tests."""

import zipfile
from pathlib import Path
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/test_datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains all tests for datasets included in zampy."""

from pathlib import Path


Expand Down
1 change: 1 addition & 0 deletions tests/test_datasets/test_fapar_lai.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Unit tests for the FAPAR-LAI dataset."""

import json
from pathlib import Path
from unittest.mock import patch
Expand Down
1 change: 1 addition & 0 deletions tests/test_recipes/generate_test_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Generates test data for running the recipe tests."""

from pathlib import Path
import numpy as np
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions tests/test_recipes/test_recipe_loader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the recipe loader."""

import pytest
from zampy.recipe import recipe_loader

Expand Down
1 change: 1 addition & 0 deletions tests/test_recipes/test_simple_recipe.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Testing a simple recipe."""

from pathlib import Path
from unittest.mock import patch
import generate_test_data
Expand Down

0 comments on commit 0e654c9

Please sign in to comment.