Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
379476f
clean up, reduce cognitive complexity, and switch to using matplotlib…
georgemccabe Mar 23, 2026
7ea3434
Per #573, convert wind rose plot from plotly to matplotlib
georgemccabe Mar 23, 2026
4582a73
Per #573, convert 2D histogram plot from plotly to matplotlib
georgemccabe Mar 23, 2026
ccf4883
Per #573, add wind rose title
georgemccabe Mar 23, 2026
1c3c7f0
support unset xlim
georgemccabe Mar 23, 2026
bbae0aa
fix formatting
georgemccabe Mar 23, 2026
772bdcf
move title_offset adjustment to base config and remove from all sub-c…
georgemccabe Mar 23, 2026
8f286d0
If self.figure is set to a matplotlib plot, call savefig on it, other…
georgemccabe Mar 24, 2026
3ae8de5
Per #573, refactor MPR plot to use matplotlib instead of plotly. This…
georgemccabe Mar 24, 2026
f032987
update actions to use latest versions to resolve Node.js 20 deprecation
georgemccabe Mar 24, 2026
5d587b7
support override of plot filename to save and title to use
georgemccabe Mar 26, 2026
03340d3
handle unset values with good default
georgemccabe Mar 26, 2026
b50b0ae
Per #573, first pass as removing plotly from tcmpr plots
georgemccabe Mar 30, 2026
69985da
add missing type to support - scatter
georgemccabe Mar 30, 2026
2804d9f
add scatter and point plots to test after they are converted to matpl…
georgemccabe Mar 30, 2026
9320655
fix minor issues in plots, clean up unused code, move xaxis reverse l…
georgemccabe Mar 30, 2026
b4385d3
remove redundant call to set_ylim
georgemccabe Mar 30, 2026
2f76549
use long versions of argument names for clarity
georgemccabe Mar 30, 2026
a179aa5
refactor tcmpr scatter plot to use matplotlib instead of plotly
georgemccabe Mar 30, 2026
14daffc
log exception and log stack trace if log_level=DEBUG to assist with d…
georgemccabe Apr 1, 2026
6a54eeb
clean up unused imports
georgemccabe Apr 1, 2026
1a96569
return non-zero if any tcmpr plots fail with an excpetion. log plot t…
georgemccabe Apr 1, 2026
647cb34
clean up redundancy in log function and add a note that setting the l…
georgemccabe Apr 1, 2026
8aa64fd
remove added plot types that cannot be created with the rest of the s…
georgemccabe Apr 1, 2026
c7a3606
set log level to DEBUG for tests so more information is available
georgemccabe Apr 1, 2026
40b4883
show log output in PyCharm test output when a test fails
georgemccabe Apr 1, 2026
52806a1
update scatter plot to return failure if an error occurs and to check…
georgemccabe Apr 1, 2026
1a28dff
log exception and log stack trace if DEBUG for most plots instead of …
georgemccabe Apr 1, 2026
f0bc694
fix incorrect argument change for scatter plot
georgemccabe Apr 1, 2026
990b9ce
support pixel conversion to inches using resolution (pixels per inch)…
georgemccabe Apr 1, 2026
b3e870f
set default units to pixels because units were previously in pixels
georgemccabe Apr 1, 2026
5d3f4b9
Per #573, update hovmoeller plot to use matplotlib instead of plotly
georgemccabe Apr 1, 2026
c616b29
add reason for skipping test
georgemccabe Apr 1, 2026
19aac3b
fix typo in config variable name and change value since the value tha…
georgemccabe Apr 1, 2026
a71103e
remove fixture that is no longer used here
georgemccabe Apr 1, 2026
9148e65
update config file to match METplus use case yaml
georgemccabe Apr 1, 2026
e22432b
added optional env var to specify a directory with additional input d…
georgemccabe Apr 1, 2026
038c696
Merge branch 'feature_557_line_gpm' into feature_573_wind_rose
georgemccabe Apr 1, 2026
6e19137
remove old version of histogram plot code that is presumably not used…
georgemccabe Apr 2, 2026
ae1a2f1
remove plotly remnants
georgemccabe Apr 2, 2026
718a91d
remove plotly copies of base functionality
georgemccabe Apr 2, 2026
6316d48
add colorbar ticks for each contour level
georgemccabe Apr 3, 2026
9a07afe
support yaxis reverse config option consistently and update contour s…
georgemccabe Apr 3, 2026
a3f61c0
improve how subsetting of x labels is handled so the subsetted labels…
georgemccabe Apr 3, 2026
6dc1b26
adjust contour intervals to match number of colors in the color palet…
georgemccabe Apr 3, 2026
612ab92
only adjust the contour intervals if it is set to more than the numbe…
georgemccabe Apr 3, 2026
f968841
remove original contributed hovmoeller plot because it uses plotly --…
georgemccabe Apr 3, 2026
194ec2b
remove plotly and kaleido from requirements files
georgemccabe Apr 3, 2026
97f2541
remove more mentions of plotly and kaleido
georgemccabe Apr 3, 2026
98707a1
Replace download-artifact action that is unreliable with a gh command…
georgemccabe Apr 3, 2026
f979ccb
test python 3.14 and 3.15
georgemccabe Apr 3, 2026
696d6ea
remove python 3.15 because it is not stable for this env yet
georgemccabe Apr 3, 2026
33920c4
rename env var for additional test input to match test output env format
georgemccabe Apr 3, 2026
7fe3c9b
download additional test data to run Hovmoeller test and set env var …
georgemccabe Apr 3, 2026
26cb65d
fix location of input data
georgemccabe Apr 3, 2026
0f2e762
clean up tcmpr plots
georgemccabe Apr 3, 2026
5d474f6
resolve Pandas4Warning deprecation warning re: slicing with datetime.…
georgemccabe Apr 6, 2026
149353d
change functions that don't use self to static methods
georgemccabe Apr 6, 2026
f6bc837
clean up title setting function
georgemccabe Apr 6, 2026
394ed94
update n_stat 2nd axis functionality to support setting multiple, col…
georgemccabe Apr 6, 2026
1089c15
remove extra space in title
georgemccabe Apr 6, 2026
287e7c9
fix extra spacing and title overlap in multiple n_stat
georgemccabe Apr 6, 2026
d8f8d18
change setting so plot more closely matches expected image from R
georgemccabe Apr 6, 2026
b010185
if exception occurs in initialization of plot object, raise the excep…
georgemccabe Apr 6, 2026
14257f1
create function to handle calculation of number of stats that is over…
georgemccabe Apr 6, 2026
46cf934
Refactor to call _get_nstats from _add_x2axis function so n_stats val…
georgemccabe Apr 6, 2026
1ad4971
refactor to reduce cognitive complexity for SonarQube
georgemccabe Apr 6, 2026
d4e1017
refactor _adjust_titles functions to be consistent and split up title…
georgemccabe Apr 6, 2026
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
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonarqube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:

steps:

- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
# Disable shallow clones for better analysis
fetch-depth: 0

- name: Set up Python 3.12
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.12"

Expand Down
33 changes: 21 additions & 12 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
python-versions: ${{ steps.set-py-versions.outputs.versions }}
steps:
- id: set-py-versions
run: echo "versions=[\"3.12\", \"3.13\"]" >> $GITHUB_OUTPUT
run: echo "versions=[\"3.12\", \"3.14\"]" >> $GITHUB_OUTPUT
- id: set-branches
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
Expand All @@ -60,19 +60,19 @@ jobs:

steps:
# checkout METplotpy
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
ref: ${{ matrix.branch }}

# checkout METcalcpy
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
repository: dtcenter/METcalcpy
path: METcalcpy
ref: develop

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -85,15 +85,22 @@ jobs:

python -m pip install -e METcalcpy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install --upgrade kaleido

- name: Download additional input data
run: |
mkdir -p ${{ runner.workspace }}/test_input
wget -P ${{ runner.workspace }}/test_input \
https://dtcenter.ucar.edu/dfiles/code/METplus/METplotpy_Data/develop/sample_data_METplotpy.tgz
tar -xzf ${{ runner.workspace }}/test_input/sample_data_METplotpy.tgz -C ${{ runner.workspace }}/test_input

- name: Test with pytest
run: |
export METPLOTPY_TEST_OUTPUT=${{ runner.workspace }}/output/${{ matrix.branch }}
export METPLOTPY_TEST_INPUT=${{ runner.workspace }}/test_input/METplotpy_Data
pytest

- name: Upload output data artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: test_output_${{ matrix.branch }}_${{ matrix.python-version }}
path: ${{ runner.workspace }}/output/${{ matrix.branch }}/test_output
Expand All @@ -109,13 +116,15 @@ jobs:
# Only run if there are exactly 2 branches to compare
if: fromJSON(needs.setup-matrix.outputs.branches)[1] != null
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: ${{ runner.workspace }}/artifacts
- name: Download artifacts
run: |
mkdir -p "${{ runner.workspace }}/artifacts"
gh run download --repo "$GITHUB_REPOSITORY" "$GITHUB_RUN_ID" --dir "${{ runner.workspace }}/artifacts"
env:
GH_TOKEN: ${{ github.token }}

- name: Checkout diff_util.py from METplus
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: dtcenter/METplus
ref: develop
Expand All @@ -125,7 +134,7 @@ jobs:
path: METplus

- name: Set up Python for diff_util.py
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.12"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vulnerabilities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
selftest:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: install
run: |
python -m venv env/
Expand Down
2 changes: 1 addition & 1 deletion docs/Users_Guide/histogram.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ configuration file, which serves as a starting point for creating a
will be built.

**NOTE**: This default configuration file is automatically loaded by
**histogram.py, rank_hist.py, prob_hist.py, and rel_hist.py.**
**hist.py, rank_hist.py, prob_hist.py, and rel_hist.py.**


.. literalinclude:: ../../metplotpy/plots/config/hist_defaults.yaml
Expand Down
1 change: 0 additions & 1 deletion metplotpy/contributed/hovmoeller/__init__.py

This file was deleted.

61 changes: 0 additions & 61 deletions metplotpy/contributed/hovmoeller/hovmoeller_calc.py

This file was deleted.

Loading
Loading