grass.temporal: allow change of mapset in a single script#5735
grass.temporal: allow change of mapset in a single script#5735echoix merged 2 commits intoOSGeo:mainfrom
Conversation
|
It seems that on CI (MacOS and Ubuntu), the first call to tgis.init() creates the DB if it does not exists, but the second call to init() after the switch of mapset does not create the DB. |
|
The gunittest and where it fails on macOS is not run in parallel. There's only one part, of pytest only tests, that are run in parallel (and not on the Ubuntu gunittest jobs) |
a9fc979 to
5cbf675
Compare
|
I believe the new PR title should be compliant. Hopefully after a manual re-run of the failing title test, we should be all green 🙂 |
|
@wenzeslaus after removing tgis, should this be temporal or lib? |
|
Use grass.temporal |
This introduces the possibility of using the temporal framework and switching mapset within the same session. This should address issue OSGeo#629. * call g.mapsets instead of direct calls to C funcs * query current mapset name explicitly
Description
This introduces the possibility of using the temporal framework and switching mapset within the same session.
Motivation and context
This should address issue #629.
How has this been tested?
I created a specific test for this feature, and ran the other tgis tests locally.
Types of changes
functionality to not work as before)
Checklist
PR title provides summary of the changes and starts with one of the
pre-defined prefixes
My code follows the code style
of this project.
My change requires a change to the documentation.
I have updated the documentation accordingly.
I have added tests to cover my changes.