File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,15 @@ def validate_output_table_type(
17
17
Parameters
18
18
----------
19
19
output_type
20
- Desired output type of tabular data. Valid values are ``"pandas"``,
21
- ``"numpy"`` and ``"file"``.
20
+ Desired output type of tabular data. Valid values are ``"pandas"``, ``"numpy"``,
21
+ and ``"file"``.
22
22
outfile
23
23
File name for saving the result data. Required if ``output_type`` is ``"file"``.
24
24
If specified, ``output_type`` will be forced to be ``"file"``.
25
25
26
26
Returns
27
27
-------
28
- str
29
- The original or updated output type.
28
+ The original or updated output type.
30
29
31
30
Examples
32
31
--------
@@ -57,9 +56,8 @@ def validate_output_table_type(
57
56
raise GMTInvalidInput (msg )
58
57
if output_type != "file" and outfile is not None :
59
58
msg = (
60
- f"Changing 'output_type' from '{ output_type } ' to 'file' "
61
- "since 'outfile' parameter is set. Please use output_type='file' "
62
- "to silence this warning."
59
+ f"Changing 'output_type' from '{ output_type } ' to 'file' since 'outfile' "
60
+ "parameter is set. Please use output_type='file' to suppress the warning."
63
61
)
64
62
warnings .warn (message = msg , category = RuntimeWarning , stacklevel = 2 )
65
63
output_type = "file"
You can’t perform that action at this time.
0 commit comments