Add error message for Xarray pickling. #1472
Labels
MET: Python Embedding
priority: medium
Medium Priority
requestor: NCAR/RAL
NCAR Research Applications Laboratory
type: bug
Fix something that is not working
Milestone
Describe the Problem
Here:
MET/met/src/libcode/vx_data2d_python/python_dataplane.cc
Line 437 in 2c9ae44
we exit(1) without printing an error message to the user! We should issue a bug fix to print an error message.
For met-10.0, we should implement support for Xarray Python embedding with pickling. That work is described in #1534 .
Expected Behavior
I expect a warning message instead of MET silently exiting and producing no output.
Environment
Describe your runtime environment:
*1. Machine: kiowa
To Reproduce
To force pickling, set the MET_PYTHON_EXE environment variable. This can be set to any version of Python I think, which just forces invocation of the pickling logic in MET which is necessary to reproduce the error.
export MET_PYTHON_EXE=/path/to/python
Call a test script I wrote for Xarray Python embedding
/usr/local/met-9.1/bin/plot_data_plane PYTHON_XARRAY testXR.ps 'name="/home/dadriaan/projects/remote/read_ascii_xarray.py /home/dadriaan/git/met/met/data/python/fcst.txt FCST";' -title "Testing" -v 10
Relevant Deadlines
NONE
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
Bugfix Checklist
See the METplus Workflow for details.
Branch name:
bugfix_<Issue Number>_master_<Version>_<Description>
Pull request:
bugfix <Issue Number> master_<Version> <Description>
Branch name:
bugfix_<Issue Number>_develop_<Description>
Pull request:
bugfix <Issue Number> develop <Description>
The text was updated successfully, but these errors were encountered: