-
Notifications
You must be signed in to change notification settings - Fork 7
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
Absolute import instead of relative #479
Closed
ahijevyc
wants to merge
91
commits into
main_v2.1
from
478-import-metplotpycontributed-instead-of-relative-import
Closed
Absolute import instead of relative #479
ahijevyc
wants to merge
91
commits into
main_v2.1
from
478-import-metplotpycontributed-instead-of-relative-import
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set up for beta1 development
update dates for 3.0 release
Replace link from boxplot to series plot
set up for beta2 development
* Issue #391 utils for added fixed_vars_vals_input support * Issue #391 tests for plot correctness. Includes data, config file, expected plot, and expected data points * fix formatting * Issue #391 add support to read in fixed_vars_vals_input setting * Issue #391 perform filtering if fixed_vars_vals_input has any values defined * issue #391 update to support the legacy format expected by METviewer when R was in use or a more simplified format for defining the fixed_vars_vals_input setting * Issue #391 clean up tests, update config files * issue #391 update the syntax for setting the fixed_vars_vals_input * add issue to branch name to activate documentation workflow * issue 391 updates to query, log when query returns an empty string * issue #391 don't filter when the query string is an empty string * Issue #391 remove call to non-existent logger in the create_query function --------- Co-authored-by: Julie Prestopnik <[email protected]>
* Issue #391 utils for added fixed_vars_vals_input support * Issue #391 tests for plot correctness. Includes data, config file, expected plot, and expected data points * fix formatting * Issue #391 add support to read in fixed_vars_vals_input setting * Issue #391 perform filtering if fixed_vars_vals_input has any values defined * issue #391 update to support the legacy format expected by METviewer when R was in use or a more simplified format for defining the fixed_vars_vals_input setting * Issue #391 clean up tests, update config files * issue #391 update the syntax for setting the fixed_vars_vals_input * add issue to branch name to activate documentation workflow * issue 391 updates to query, log when query returns an empty string * issue #391 don't filter when the query string is an empty string * Issue #391 remove call to non-existent logger in the create_query function * Issue #391 invoke filter_by_fixed_vars in metplotpy.util to filter by fixed vars * Issue #391 replace create_query() with filter_by_fixed_vars() * Issue #391 replace tests for create_query with tests for filter_by_vars * issue #391 data for filtering by fixed vals * Issue #391 additional test for filtering by fixed values * issue #391 fixed formatting that was causing unexpected results, updated comments --------- Co-authored-by: Julie Prestopnik <[email protected]>
* Fix title to reflect the actual data used * Change title to reflect the data used * Issue #394 Suppress deprecation warning emanating from python-kaleido/plotly * Remove save_to_file(), use version in base_plot --------- Co-authored-by: Minna Win-Gildenmeister <[email protected]>
* Issue #401 replaced line_logger with logger in line 698 * issue #401 don't remove the nan.points1 plot as cleanup * Issue #401 move this file from the intermediate files directory. It doesn't belong there since it is not created during a test and is a file that is supposed to persist * issue #401 refer to the nan.points1 in a new directory
update for beta3 development
update description of ArgumentParser to be more generic.
* data for testing ROC summary curve #399 * add a legend for ROC summary curve #399 * add ROC summary curve #399 * add ROC summary curve #399 * add ROC summary curve parameter #399 * add ROC summary curve #399 * add ROC summary curve test #399 * move methods for preparing ROC data to the common script for the ease of reuse #399
Fix typo.
* Adding stratosphere bias plot * Added stratosphere Plots * Added stratosphere plots for new use cases * Added plotting documentation * Updated toctree
* command line updates * updating yaml files
scipy 1.9.3 no longer available in conda forge, use the same version as in requirements.txt
replace == with >= for scipy to allow flexibility
* updates to version and release notes * Fix misspelling
forgot to update the header for beta3 (had copied and pasted from beta2)
update version for beta4 development
…recationWarning, as it no longer exists
…e tests when changes are pushed to main_vX.Y and develop branches
ahijevyc
added
type: bug
Fix something that is not working
priority: low
Low Priority
labels
Dec 17, 2024
14 tasks
14 tasks
14 tasks
* updates for coordinated release: version updates, dates, rotating authors * Clean up text: fix typos, remove duplicates * Update vulnerabilities.yaml update gh-action-pip-audit from 1.0.5 to 1.1.0 * Apply suggestions from code review Co-authored-by: Julie Prestopnik <[email protected]> * Adding space * Removing, superfluous since vulnerability checks are automatically done --------- Co-authored-by: Julie Prestopnik <[email protected]>
added the version number
fixed version number
version number needs quotes
michelleharrold
added
reporting: DTC NCAR Base
NCAR Base DTC Project
and removed
reporting: DTC NCAR Base
NCAR Base DTC Project
labels
Jan 8, 2025
ahijevyc
force-pushed
the
478-import-metplotpycontributed-instead-of-relative-import
branch
from
January 17, 2025 22:18
ae7d2ca
to
7edf1ec
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For 3 scripts in
metplotpy/contributed/fv3_physics_tend
...Follow the style of
metplotpy
module importing that is used inmetplotpy/contributed/stratosphere_diagnostics/stratosphere_diagnostics.py
to avoid error about relative import.In other words, replace
from . import physics_tend
with
import metplotpy.contributed.fv3_physics_tend.physics_tend
That should avoid the
ImportError: attempted relative import with no known parent package
.Pull Request Testing
It works in a conda environment with metplotpy 2.1.0
Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes]
Do these changes include sufficient testing updates? [Yes]
Will this PR result in changes to the test suite? [No]
If yes, describe the new output and/or changes to the existing output:
Do these changes introduce new SonarQube findings? [No]
If yes, please describe:
Please complete this pull request review by [February 2025].
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s) and Development issue
Select: Milestone as the version that will include these changes
Select: Coordinated METplus-X.Y Support project for bugfix releases or METplotpy-X.Y.Z Development project for official releases