Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug-14-PIL #23

Merged
merged 5 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pdgraster/WebImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

from . import Palette

import time
import uuid
import logging
from . import logging_config
import os
logger = logging_config.logger


class WebImage():
"""
Expand Down Expand Up @@ -96,6 +103,7 @@ def to_image(self, image_data):
rgba_list = self.rgba_list
height = self.height
width = self.width
image_data = image_data.astype(float)
no_data_mask = image_data == nodata_val

# set the nodata value to np.nan
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ coloraide = ">= 0.10, < 1"
colormaps = "== 0.4.0"
Pillow = ">= 9, < 10"
rasterio = ">= 1.2, < 2"
pdgstaging = ">= 0.9.1"
pydantic = "1.10.9"

[tool.poetry.group.dev.dependencies]
pytest = ">=7"
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
author='Robyn Thiessen-Bock, Juliet Cohen',
author_email='thiessenbock@nceas.ucsb.edu, jcohen@nceas.ucsb.edu',
name='pdgraster',
version='0.9.0',
version='0.9.1',
description='Rasterization to GeoTiff and web-based tiles for the PDG '
'Visualization pipeline',
long_description=long_description,
Expand All @@ -23,6 +23,7 @@
'morecantile >= 3.1, < 4',
'Rtree >= 0.9, < 1',
'rasterio >= 1.2, < 2',
'pydantic == 1.10.9',
'pdgstaging @ git+https://github.com/PermafrostDiscoveryGateway/viz-staging.git#egg=pdgstaging',
'colormaps == 0.4.0'
],
Expand Down