You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by ea...@apache.org on 2020/11/24 00:14:05 UTC

[incubator-sdap-ingester] branch tile_id_hashing created (now 6c4086c)

This is an automated email from the ASF dual-hosted git repository.

eamonford pushed a change to branch tile_id_hashing
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-ingester.git.


      at 6c4086c  Replace granule name with dataset name in tile ID generation

This branch includes the following new commits:

     new 6c4086c  Replace granule name with dataset name in tile ID generation

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-sdap-ingester] 01/01: Replace granule name with dataset name in tile ID generation

Posted by ea...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eamonford pushed a commit to branch tile_id_hashing
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-ingester.git

commit 6c4086c28e9d641566d1ed417b694841bd13ebec
Author: Eamon Ford <ea...@gmail.com>
AuthorDate: Mon Nov 23 16:13:48 2020 -0800

    Replace granule name with dataset name in tile ID generation
---
 granule_ingester/granule_ingester/processors/GenerateTileId.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/granule_ingester/granule_ingester/processors/GenerateTileId.py b/granule_ingester/granule_ingester/processors/GenerateTileId.py
index 2d965f7..ea04cdd 100644
--- a/granule_ingester/granule_ingester/processors/GenerateTileId.py
+++ b/granule_ingester/granule_ingester/processors/GenerateTileId.py
@@ -23,10 +23,11 @@ from granule_ingester.processors.TileProcessor import TileProcessor
 class GenerateTileId(TileProcessor):
 
     def process(self, tile: nexusproto.NexusTile, *args, **kwargs):
-        granule = os.path.basename(tile.summary.granule)
         variable_name = tile.summary.data_var_name
         spec = tile.summary.section_spec
-        generated_id = uuid.uuid3(uuid.NAMESPACE_DNS, granule + variable_name + spec)
+        dataset_name = tile.summary.dataset_name
+
+        generated_id = uuid.uuid3(uuid.NAMESPACE_DNS, dataset_name + variable_name + spec)
 
         tile.summary.tile_id = str(generated_id)
         return tile