[GRASS-git] [OSGeo/grass] 0c73ce: temporal: Update STDS metadata from DB (#3350)

Stefan Blumentrath noreply at github.com
Tue Jan 23 14:26:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 0c73ced9e7099cad88ceada12874f95f65dbdfa5
      https://github.com/OSGeo/grass/commit/0c73ced9e7099cad88ceada12874f95f65dbdfa5
  Author: Stefan Blumentrath <stefan.blumentrath at gmx.de>
  Date:   2024-01-23 (Tue, 23 Jan 2024)

  Changed paths:
    M python/grass/temporal/abstract_space_time_dataset.py
    M python/grass/temporal/metadata.py
    M python/grass/temporal/temporal_granularity.py

  Log Message:
  -----------
  temporal: Update STDS metadata from DB (#3350)

* compute granularity from time tuples

* update metadata from DB

* black

* flake8

* more flake8

* address test-failures

* address test-failures

* address more test-failures

* handle empty maps list

* handle empty maps list

* fix temporal relation remove unnecessary loop

* add docs, function to get function

* add docs, function to get function

* dont check data structure in loop

* check empty list

* remove DB version check

* implement suggstions from review

* Update python/grass/temporal/abstract_space_time_dataset.py

Co-authored-by: Edouard Choinière <27212526+echoix at users.noreply.github.com>

* implement suggstions from review

* reduce looping

* order time units in dict

* Update python/grass/temporal/temporal_granularity.py

Co-authored-by: Edouard Choinière <27212526+echoix at users.noreply.github.com>

* Update python/grass/temporal/temporal_granularity.py

Co-authored-by: Edouard Choinière <27212526+echoix at users.noreply.github.com>

* Update python/grass/temporal/temporal_granularity.py

Co-authored-by: Edouard Choinière <27212526+echoix at users.noreply.github.com>

* Update python/grass/temporal/temporal_granularity.py

Co-authored-by: Edouard Choinière <27212526+echoix at users.noreply.github.com>

* Update python/grass/temporal/temporal_granularity.py

Co-authored-by: Edouard Choinière <27212526+echoix at users.noreply.github.com>

* use sets of granularity units

* handle max_days, typos

---------

Co-authored-by: Edouard Choinière <27212526+echoix at users.noreply.github.com>




More information about the grass-commit mailing list