Skip to content

Commit

Permalink
Merge pull request #268 from statisticsnorway/not-test-partitioning
Browse files Browse the repository at this point in the history
Partitioning
  • Loading branch information
mortewle authored Jan 20, 2025
2 parents bf37ea3 + 625484a commit 842e465
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 60 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ssb-sgis"
version = "1.1.0"
version = "1.1.1"
description = "GIS functions used at Statistics Norway."
authors = ["Morten Letnes <morten.letnes@ssb.no>"]
license = "MIT"
Expand Down
6 changes: 1 addition & 5 deletions src/sgis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
config = {
"n_jobs": 1,
}


import sgis.raster.indices as indices

from .conf import config
from .geopandas_tools.bounds import Gridlooper
from .geopandas_tools.bounds import bounds_to_points
from .geopandas_tools.bounds import bounds_to_polygon
Expand Down
16 changes: 16 additions & 0 deletions src/sgis/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
try:
from gcsfs import GCSFileSystem
except ImportError:

class GCSFileSystem:
"""Placeholder."""

def __init__(self, *args, **kwargs) -> None:
"""Placeholder."""
raise ImportError("gcsfs")


config = {
"n_jobs": 1,
"file_system": GCSFileSystem,
}
Loading

0 comments on commit 842e465

Please sign in to comment.