Skip to content

Commit 424c417

Browse files
committed
Minor fixes from code review
1 parent 14b050e commit 424c417

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ HyBIG follows semantic versioning. All notable changes to this project will be
44
documented in this file. The format is based on [Keep a
55
Changelog](http://keepachangelog.com/en/1.0.0/).
66

7+
## [v2.4.0] - 2025-04-28
8+
9+
### Changed
10+
11+
* Fix rasterization issues with palettized granules. Source images now retain their palette in a scaled form, rather than reinterpreting the palette. [[#50](https://github.com/nasa/harmony-browse-image-generator/pull/50)]
12+
* Minor bugfixes and type formatting improvements.
713

814
## [v2.3.0] - 2025-02-26
915

@@ -112,6 +118,7 @@ For more information on internal releases prior to NASA open-source approval,
112118
see legacy-CHANGELOG.md.
113119

114120
[unreleased]: https://github.com/nasa/harmony-browse-image-generator/
121+
[v2.4.0]: https://github.com/nasa/harmony-browse-image-generator/releases/tag/2.4.0
115122
[v2.3.0]: https://github.com/nasa/harmony-browse-image-generator/releases/tag/2.3.0
116123
[v2.2.0]: https://github.com/nasa/harmony-browse-image-generator/releases/tag/2.2.0
117124
[v2.1.0]: https://github.com/nasa/harmony-browse-image-generator/releases/tag/2.1.0

docker/service.Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ COPY pip_requirements.txt /home/
3939

4040
RUN pip install --no-input --no-cache-dir \
4141
-r pip_requirements.txt
42-
# -r pip_requirements_skip_snyk.txt
4342

4443
# Copy service code.
4544
COPY ./harmony_service harmony_service

hybig/browse.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ def create_browse_imagery(
155155
xml file.
156156
157157
"""
158-
logger.info(message)
159158
output_driver = image_driver(message.format.mime)
160159
out_image_file = output_image_file(Path(input_file_path), driver=output_driver)
161160
out_world_file = output_world_file(Path(input_file_path), driver=output_driver)
@@ -367,10 +366,6 @@ def get_color_map_from_image(image: Image) -> dict:
367366
return color_map
368367

369368

370-
def get_colormap_from_scaled_colors(scaled_colors) -> dict:
371-
pass
372-
373-
374369
def get_aux_xml_filename(image_filename: Path) -> Path:
375370
"""Get aux.xml filenames."""
376371
return image_filename.with_suffix(image_filename.suffix + '.aux.xml')

hybig/color_utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
NODATA_IDX = 255
3030

3131

32-
def remove_alpha(raster: np.ndarray) -> tuple[np.ndarray, np.ndarray, None]:
32+
def remove_alpha(raster: np.ndarray) -> tuple[np.ndarray, np.ndarray | None]:
3333
"""Remove alpha layer when it exists."""
3434
if raster.shape[0] == 4:
3535
return raster[0:3, :, :], raster[3, :, :]

pip_requirements_skip_snyk.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)