Skip to content

Commit

Permalink
Bugfix 2518 dtypes appf docs (#2519)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielAdriaansen authored Apr 23, 2023
1 parent 22fbca7 commit 5293de4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions docs/Users_Guide/appendixF.rst
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ Examples of Python Embedding for Point Observations
.. code-block:: none
:caption: PointStat Command with Dual Python Embedding
point_stat 'PYTHON_NUMPY' 'PYTHON_NUMPY' PointStat_config -outdir /path/to/output
point_stat 'PYTHON_NUMPY' 'PYTHON_NUMPY=/path/to/obs/python/script.py python_arg1 python_arg2' PointStat_config -outdir /path/to/output
.. code-block:: none
:caption: PointStat Config with Dual Python Embedding
Expand All @@ -509,14 +509,6 @@ Examples of Python Embedding for Point Observations
];
}
obs = {
field = [
{
name = "/path/to/obs/python/script.py python_arg1 python_arg2";
}
];
}
.. _pyembed-mpr-data:

Python Embedding for MPR Data
Expand Down
2 changes: 1 addition & 1 deletion scripts/python/met/mprbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class mpr_data():
# Skip first "col_start" columns if col_start is not 0.
def read_mpr(input_file, col_last, col_start = 0, header=None,
delim_whitespace=True, keep_default_na=False,
skiprows=1, dtype=str):
skiprows=1, dtype='string'):
mpr_data = pd.read_csv(input_file, header=header,
delim_whitespace=delim_whitespace,
keep_default_na=keep_default_na,
Expand Down
2 changes: 1 addition & 1 deletion scripts/python/met/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ def read_text_point_obs(input_file, header=None,
delim_whitespace=delim_whitespace,
keep_default_na=keep_default_na,
names=['typ', 'sid', 'vld', 'lat', 'lon', 'elv', 'var', 'lvl', 'hgt', 'qc', 'obs'],
dtype={'typ':'str', 'sid':'str', 'vld':'str', 'var':'str', 'qc':'str'}).values.tolist()
dtype={'typ':'string', 'sid':'string', 'vld':'string', 'var':'string', 'qc':'string'}).values.tolist()
return ascii_point_data

# Note: caller should import netCDF4
Expand Down

0 comments on commit 5293de4

Please sign in to comment.