Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix #2518 dtypes_appf_docs #2519

Merged
merged 2 commits into from
Apr 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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