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

Fix plot logo and tight layout bug #213

Merged

Conversation

EdwardSafford-NOAA
Copy link
Contributor

Fix the fatal error that results from a batch plot input yaml file containing plot logo and/or tight layout figure settings.

As described in #212 the problem is that in src/eva/plotting/batch/base/plot_tools/figure_driver.py both plot logo and tight layout are left in the figure_conf dictionary after the corresponding figure method is correctly applied. The figure_conf dictionary is eventually fed to emcpy and then matplotlib which is unable to parse these entries. The fix is to simply remove the entries from figure_conf once the requested method has been called.

Testing has been done on hera using src/eva/tests/config/testMonDataSpaceHirs4Metop-A.yaml, which now can plot logos and use tight layout.

Closes #212

Fix plot logo & tight layout bugs.
Copy link
Collaborator

@CoryMartin-NOAA CoryMartin-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I want @kevindougherty-noaa to review before merging just to make sure it looks okay

Copy link
Contributor

@kevindougherty-noaa kevindougherty-noaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me as well.

@CoryMartin-NOAA CoryMartin-NOAA merged commit a21fce8 into JCSDA-internal:develop Nov 19, 2024
5 checks passed
CoryMartin-NOAA pushed a commit to NOAA-EMC/obs-monitor that referenced this pull request Nov 20, 2024
With the addition of JCSDA-internal/eva#213 to
eva `plot logo` and `tight layout` can now be used again in the yaml
template plot files.

Note that the `obs-mon` python ve needs to be updated on each machine to
pull in the latest version of `eva.` At the moment the `obs-mon` ve is
located in my `noscrub` space so I can do that. I've updated the ve on
hera, which is where I tested these changes, and update the ve on
wcoss2, orion, and hercules this morning.

 
Closes #51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Batch plots fail when trying to use 'plot logo' and 'tight layout'
3 participants