Skip to content

Commit d203cd5

Browse files
committed
Set valid GMT data mode as GMT_IS_OUTPUT
Should be GMT_IS_OUTPUT instead of GMT_OUTPUT. Also update some docstrings that were missed in the #210 refactor PR.
1 parent 522ceba commit d203cd5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pygmt/clib/session.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"GMT_IS_SURFACE",
4444
]
4545

46-
MODES = ["GMT_CONTAINER_ONLY", "GMT_OUTPUT"]
46+
MODES = ["GMT_CONTAINER_ONLY", "GMT_IS_OUTPUT"]
4747

4848
REGISTRATIONS = ["GMT_GRID_PIXEL_REG", "GMT_GRID_NODE_REG"]
4949

@@ -509,13 +509,13 @@ def create_data(self, family, geometry, mode, **kwargs):
509509
----------
510510
family : str
511511
A valid GMT data family name (e.g., ``'GMT_IS_DATASET'``). See the
512-
``data_families`` attribute for valid names.
512+
``FAMILIES`` attribute for valid names.
513513
geometry : str
514514
A valid GMT data geometry name (e.g., ``'GMT_IS_POINT'``). See the
515-
``data_geometries`` attribute for valid names.
515+
``GEOMETRIES`` attribute for valid names.
516516
mode : str
517-
A valid GMT data mode (e.g., ``'GMT_OUTPUT'``). See the
518-
``data_modes`` attribute for valid names.
517+
A valid GMT data mode (e.g., ``'GMT_IS_OUTPUT'``). See the
518+
``MODES`` attribute for valid names.
519519
dim : list of 4 integers
520520
The dimensions of the dataset. See the documentation for the GMT C
521521
API function ``GMT_Create_Data`` (``src/gmt_api.c``) for the full
@@ -843,12 +843,12 @@ def write_data(self, family, geometry, mode, wesn, output, data):
843843
----------
844844
family : str
845845
A valid GMT data family name (e.g., ``'GMT_IS_DATASET'``). See the
846-
``data_families`` attribute for valid names. Don't use the
846+
``FAMILIES`` attribute for valid names. Don't use the
847847
``GMT_VIA_VECTOR`` or ``GMT_VIA_MATRIX`` constructs for this. Use
848848
``GMT_IS_VECTOR`` and ``GMT_IS_MATRIX`` instead.
849849
geometry : str
850850
A valid GMT data geometry name (e.g., ``'GMT_IS_POINT'``). See the
851-
``data_geometries`` attribute for valid names.
851+
``GEOMETRIES`` attribute for valid names.
852852
mode : str
853853
How the data is to be written to the file. This option varies
854854
depending on the given family. See the GMT API documentation for

0 commit comments

Comments
 (0)