pygmt.clib.Session.__enter__
-
Session.__enter__()[source]
Create a GMT API session and check the libgmt version.
Calls pygmt.clib.Session.create
.
- Raises:
GMTVersionError – If the version reported by libgmt is less than
Session.required_version
. Will destroy the session before
raising the exception.