[GRASS-git] [OSGeo/grass] 024d3c: grass.jupyter: Restructure TimeSeriesMap, make it ...

Caitlin Haedrich noreply at github.com
Mon Apr 18 10:14:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 024d3cb134b78cb564b3d23d0276c9823ca2f8b3
      https://github.com/OSGeo/grass/commit/024d3cb134b78cb564b3d23d0276c9823ca2f8b3
  Author: Caitlin Haedrich <69856275+chaedri at users.noreply.github.com>
  Date:   2022-04-18 (Mon, 18 Apr 2022)

  Changed paths:
    M doc/notebooks/temporal.ipynb
    M python/grass/jupyter/tests/timeseriesmap_test.py
    M python/grass/jupyter/timeseriesmap.py

  Log Message:
  -----------
  grass.jupyter: Restructure TimeSeriesMap, make it consistent (#2306)

Restructure TimeSeriesMap so methods are consistent with other grass.jupyter classes by removing `overlay` and `baselayer` in favor of adding layers to map directly and in order they are called with the `__getattr__`  magic.

Spatio-temporal datasets are added with functions add_raster_series and add_vector_series which is similar to InteractiveMap and usable also for theoretical non-temporal SeriesMap. (Style still cannot be set.)

Neither time series nor background is managed by the `__init__` method, but adding exactly one time series is explicitly enforced using exceptions on invalid operations.

Interactive and GIF outputs are now accessible through show and save methods like with the other classes.




More information about the grass-commit mailing list