Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
abarciauskas-bgse committed Nov 8, 2023
1 parent 814f881 commit 2f62c7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions infrastructure/aws/lambda/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

from mangum import Mangum

import os
directory = '/mnt/efs/libraries'
contents = os.listdir(directory)
print(contents)
from titiler.xarray.main import app

logging.getLogger("mangum.lifespan").setLevel(logging.ERROR)
Expand Down
1 change: 0 additions & 1 deletion titiler/xarray/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ def tiles_endpoint( # type: ignore
x, y, z, tilesize=scale * 256, nodata=src_dst.input.rio.nodata
)


if post_process:
image = post_process(image)

Expand Down
7 changes: 4 additions & 3 deletions titiler/xarray/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_filesystem(
else s3fs.S3FileSystem()
)
return (
s3_filesystem.open(src_path, mode='rb')
s3_filesystem.open(src_path, mode="rb")
if xr_engine == "h5netcdf"
else s3fs.S3Map(root=src_path, s3=s3_filesystem)
)
Expand Down Expand Up @@ -132,7 +132,7 @@ def xarray_open_dataset(
"decode_coords": "all",
"decode_times": decode_times,
"engine": xr_engine,
"cache": False
"cache": False,
}

# Argument if we're opening a datatree
Expand Down Expand Up @@ -253,7 +253,8 @@ class ZarrReader(XarrayReader):
def __attrs_post_init__(self):
"""Set bounds and CRS."""
self.ds = self._ctx_stack.enter_context(
xarray_open_dataset(self.src_path,
xarray_open_dataset(
self.src_path,
group=self.group,
reference=self.reference,
consolidated=self.consolidated,
Expand Down

0 comments on commit 2f62c7d

Please sign in to comment.