gmt.clib.Session.__enter__

Session.__enter__()[source]

Create a GMT API session and check the libgmt version.

Calls create.

Raises:
GMTVersionError

If the version reported by libgmt is less than Session.required_version. Will destroy the session before raising the exception.