Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

renamed legacy ids prefix #923

Merged
merged 1 commit into from
Aug 19, 2020
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
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Version 2.1.0 (in development)
* Renamed legacy id's prefix from `esacci` to `cciold`
* Exchanged Cate's countries GeoJSON, by three new maps from https://www.naturalearthdata.com
using 10m, 50m (default), and 110m resolutions. This fixes broken polyline and polygon
drawing in Cate Web UI [#912](https://github.com/CCI-Tools/cate/issues/912). See also
Expand Down
2 changes: 1 addition & 1 deletion cate/ds/esa_cci_odp_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def __init__(self,
cci_catalogue_data: dict = None,
schema: Schema = None):
super(EsaCciOdpLegacyDataSource, self).__init__()
self._master_id = json_dict.get('master_id', None)
self._master_id = json_dict.get('master_id', None).replace('esacci', 'cciold')
self._dataset_id = json_dict.get('id', None)
self._instance_id = json_dict.get('instance_id', None)

Expand Down
2 changes: 1 addition & 1 deletion tests/ds/test_esa_cci_odp_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def test_data_store(self):

def test_id(self):
self.assertEqual(self.first_oc_data_source.id,
'esacci.OC.day.L3S.K_490.multi-sensor.multi-platform.MERGED.1-0.r2')
'cciold.OC.day.L3S.K_490.multi-sensor.multi-platform.MERGED.1-0.r2')

def test_schema(self):
self.assertEqual(self.first_oc_data_source.schema,
Expand Down