Skip to content

Commit

Permalink
merge main before merging
Browse files Browse the repository at this point in the history
Double-check merge by merging main into us first.
  • Loading branch information
craigsteffen committed Aug 16, 2024
2 parents b43dc40 + 961b5d6 commit 1f3ac0e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
## [0.8.0] - 2024-08-06

### Added
- Added connection and retrieve api for CDR interface
- Added support for downloading legends from the CDR
Expand Down
4 changes: 4 additions & 0 deletions cdrhook/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def convert_cdr_schema_metadata_to_cmass_map_metadata(cdr_metadata:CogMetadataSc
return map_metadata

def convert_cdr_schema_legend_items_to_cmass_legend(cdr_legend:List[LegendItemResponse]) -> Legend:
if len(cdr_legend) == 0:
return None
legend = Legend(provenance=Provenance(name=cdr_legend[0].system, version=cdr_legend[0].system_version))
for item in cdr_legend:
map_unit = MapUnit(type=MapUnitType.from_str(item.category.lower()))
Expand All @@ -32,6 +34,8 @@ def convert_cdr_schema_legend_items_to_cmass_legend(cdr_legend:List[LegendItemRe
return legend

def convert_cdr_schema_area_extraction_to_layout(cdr_area_extraction:List[AreaExtractionResponse]) -> Layout:
if len(cdr_area_extraction) == 0:
return None
layout = Layout(provenance=Provenance(name=cdr_area_extraction[0].system, version=cdr_area_extraction[0].system_version))
for area in cdr_area_extraction:
if area.category == 'map_area':
Expand Down
2 changes: 1 addition & 1 deletion monitor/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
requests==2.31.0
requests==2.32.2

0 comments on commit 1f3ac0e

Please sign in to comment.