|
1 | 1 | """
|
2 |
| -Defines the Session class to create and destroy a GMT API session and provides |
3 |
| -access to the API functions. |
| 2 | +Defines the Session class to create and destroy a GMT API session and provides access to |
| 3 | +the API functions. |
4 | 4 |
|
5 | 5 | Uses ctypes to wrap most of the core functions from the C API.
|
6 | 6 | """
|
@@ -369,11 +369,11 @@ def create(self, name):
|
369 | 369 | @ctp.CFUNCTYPE(ctp.c_int, ctp.c_void_p, ctp.c_char_p)
|
370 | 370 | def print_func(file_pointer, message): # noqa: ARG001
|
371 | 371 | """
|
372 |
| - Callback function that the GMT C API will use to print log and |
373 |
| - error messages. |
| 372 | + Callback function that the GMT C API will use to print log and error |
| 373 | + messages. |
374 | 374 |
|
375 |
| - We'll capture the messages and print them to stderr so that they |
376 |
| - will show up on the Jupyter notebook. |
| 375 | + We'll capture the messages and print them to stderr so that they will show |
| 376 | + up on the Jupyter notebook. |
377 | 377 | """
|
378 | 378 | message = message.decode().strip()
|
379 | 379 | self._error_log.append(message)
|
@@ -497,8 +497,8 @@ def get_default(self, name):
|
497 | 497 |
|
498 | 498 | def get_common(self, option):
|
499 | 499 | """
|
500 |
| - Inquire if a GMT common option has been set and return its current |
501 |
| - value if possible. |
| 500 | + Inquire if a GMT common option has been set and return its current value if |
| 501 | + possible. |
502 | 502 |
|
503 | 503 | Parameters
|
504 | 504 | ----------
|
@@ -720,9 +720,9 @@ def _parse_pad(self, family, kwargs):
|
720 | 720 | """
|
721 | 721 | Parse and return an appropriate value for pad if none is given.
|
722 | 722 |
|
723 |
| - Pad is a bit tricky because, for matrix types, pad control the matrix |
724 |
| - ordering (row or column major). Using the default pad will set it to |
725 |
| - column major and mess things up with the numpy arrays. |
| 723 | + Pad is a bit tricky because, for matrix types, pad control the matrix ordering |
| 724 | + (row or column major). Using the default pad will set it to column major and |
| 725 | + mess things up with the numpy arrays. |
726 | 726 | """
|
727 | 727 | pad = kwargs.get("pad", None)
|
728 | 728 | if pad is None:
|
@@ -783,8 +783,8 @@ def _parse_constant(self, constant, valid, valid_modifiers=None):
|
783 | 783 |
|
784 | 784 | def _check_dtype_and_dim(self, array, ndim):
|
785 | 785 | """
|
786 |
| - Check that a numpy array has the given number of dimensions and is a |
787 |
| - valid data type. |
| 786 | + Check that a numpy array has the given number of dimensions and is a valid data |
| 787 | + type. |
788 | 788 |
|
789 | 789 | Parameters
|
790 | 790 | ----------
|
|
0 commit comments