Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tillwenke committed Jan 9, 2025
1 parent 010326d commit 7e643de
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -466,4 +466,5 @@ junit/
# custom
cache/
dump.sqlite
*.html
*.html
.ipynb
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- geopandas==1.0.1
- matplotlib==3.10.0
- numpy==2.2.1
- numexpr==2.10.2
- osmnx==1.7.0
- pandas==2.2.3
- rasterio==1.4.3
Expand Down
4 changes: 3 additions & 1 deletion heatchmap/gpmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
from rasterio.crs import CRS
from rasterio.transform import from_gcps
from shapely.validation import make_valid
from tqdm.auto import tqdm
from tqdm import tqdm

from .map_based_model import MapBasedModel
from .utils.utils_data import get_points
from .utils.utils_models import fit_gpr_silent
from .utils.transformed_target_regressor_with_uncertainty import TransformedTargetRegressorWithUncertainty

Check failure on line 22 in heatchmap/gpmap.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

heatchmap/gpmap.py:22:66: F401 `.utils.transformed_target_regressor_with_uncertainty.TransformedTargetRegressorWithUncertainty` imported but unused

Check failure on line 22 in heatchmap/gpmap.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

heatchmap/gpmap.py:22:66: F401 `.utils.transformed_target_regressor_with_uncertainty.TransformedTargetRegressorWithUncertainty` imported but unused
from .utils import transformed_target_regressor_with_uncertainty

Check failure on line 23 in heatchmap/gpmap.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

heatchmap/gpmap.py:23:20: F401 `.utils.transformed_target_regressor_with_uncertainty` imported but unused

Check failure on line 23 in heatchmap/gpmap.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

heatchmap/gpmap.py:23:20: F401 `.utils.transformed_target_regressor_with_uncertainty` imported but unused


class GPMap(MapBasedModel):

Check failure on line 26 in heatchmap/gpmap.py

View workflow job for this annotation

GitHub Actions / build

Ruff (I001)

heatchmap/gpmap.py:2:1: I001 Import block is un-sorted or un-formatted

Check failure on line 26 in heatchmap/gpmap.py

View workflow job for this annotation

GitHub Actions / build

Ruff (D101)

heatchmap/gpmap.py:26:7: D101 Missing docstring in public class

Check failure on line 26 in heatchmap/gpmap.py

View workflow job for this annotation

GitHub Actions / build

Ruff (I001)

heatchmap/gpmap.py:2:1: I001 Import block is un-sorted or un-formatted

Check failure on line 26 in heatchmap/gpmap.py

View workflow job for this annotation

GitHub Actions / build

Ruff (D101)

heatchmap/gpmap.py:26:7: D101 Missing docstring in public class
Expand Down
1 change: 1 addition & 0 deletions heatchmap/utils/utils_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import geopandas as gpd
import pandas as pd
import shapely
from rasterio.crs import CRS

from .utils_map import *

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import setuptools

VERSION = "0.1.3"
VERSION = "0.1.4"

NAME = "heatchmap"

Expand Down

0 comments on commit 7e643de

Please sign in to comment.