-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
MET: Python Embeddingpriority: highHigh PriorityHigh Priorityreporting: DTC NCAR BaseNCAR Base DTC ProjectNCAR Base DTC Projectreporting: DTC NOAA BASENOAA Office of Atmospheric Research DTC ProjectNOAA Office of Atmospheric Research DTC Projectrequestor: NCAR/RALNCAR Research Applications LaboratoryNCAR Research Applications Laboratorytype: bugFix something that is not workingFix something that is not working
Milestone
Description
Describe the Problem
When a user runs a point data tool plot_point_obs
, point_stat
, etc. with the environment variable MET_PYTHON_EXE
set, MET does not override the default Python with the value from MET_PYTHON_EXE
.
Expected Behavior
When a user sets MET_PYTHON_EXE
, the MET tools should override the default Python executable and use the users Python executable. The example below under "To Reproduce" reports this:
DEBUG 3: Initializing python: /usr/local/met-python3/bin/python3.8
but I would expect it to say this:
DEBUG 3: Initializing python: /home/met_test/.conda/envs/metplus_base.v5/bin/python3
Environment
Testing on seneca on Linux using the MET develop nightly build which reports the Python executable being used.
To Reproduce
On seneca:
export MET_PYTHON_EXE=/home/met_test/.conda/envs/metplus_base.v5/bin/python3
/d1/projects/MET/MET_regression/develop/NB20230130/MET-develop/bin/plot_point_obs "PYTHON_NUMPY=/d1/projects/MET/MET_releases/MET-11.0.0/scripts/python/read_ascii_point.py /d1/projects/MET/MET_releases/MET-11.0.0/data/sample_obs/ascii/sample_ascii_obs.txt" test.ps -v 3
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
2792542
Define the Metadata
Assignee
- Select engineer(s) or no engineer required
- Select scientist(s) or no scientist required
Labels
- Select component(s)
- Select priority
- Select requestor(s)
Projects and Milestone
- Select Organization level Project for support of the current coordinated release
- Select Repository level Project for development toward the next official release or add alert: NEED PROJECT ASSIGNMENT label
- Select Milestone as the next bugfix version
Define Related Issue(s)
Consider the impact to the other METplus components.
Bugfix Checklist
See the METplus Workflow for details.
- Complete the issue definition above, including the Time Estimate and Funding Source.
- Fork this repository or create a branch of main_<Version>.
Branch name:bugfix_<Issue Number>_main_<Version>_<Description>
- Fix the bug and test your changes.
- Add/update log messages for easier debugging.
- Add/update unit tests.
- Add/update documentation.
- Push local changes to GitHub.
- Submit a pull request to merge into main_<Version>.
Pull request:bugfix <Issue Number> main_<Version> <Description>
- Define the pull request metadata, as permissions allow.
Select: Reviewer(s) and Development issue
Select: Organization level software support Project for the current coordinated release
Select: Milestone as the next bugfix version - Iterate until the reviewer(s) accept and merge your changes.
- Delete your fork or branch.
- Complete the steps above to fix the bug on the develop branch.
Branch name:bugfix_<Issue Number>_develop_<Description>
Pull request:bugfix <Issue Number> develop <Description>
Select: Reviewer(s) and Development issue
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version - Close this issue.
Metadata
Metadata
Assignees
Labels
MET: Python Embeddingpriority: highHigh PriorityHigh Priorityreporting: DTC NCAR BaseNCAR Base DTC ProjectNCAR Base DTC Projectreporting: DTC NOAA BASENOAA Office of Atmospheric Research DTC ProjectNOAA Office of Atmospheric Research DTC Projectrequestor: NCAR/RALNCAR Research Applications LaboratoryNCAR Research Applications Laboratorytype: bugFix something that is not workingFix something that is not working
Type
Projects
Status
✅ Done