NRLMMD-GEOIPS / geoips

Main Geolocated Information Processing System code base with basic functionality enabled.
https://nrlmmd-geoips.github.io/geoips/
Other
13 stars 10 forks source link

Split ``sectors.py:SectorPluginBase:create_test_plot`` into two functions. #566

Open evrose54 opened 1 month ago

evrose54 commented 1 month ago

Requested Update

Description

In PR #530, new functionality was introduced to sectors.py:SectorPluginBase:create_test_plot where we conditionally either return fig, ax, mapobj or perform fig.savefig. This is likely bad practice and we should be consistent in whether or not we return something within GeoIPS functions. This create_test_plot likely should be broken into two functions, one of which saves a figure, and then other which returns those objects mentioned.

Background and Motivation

See this comment from #530.

Code to demonstrate issue

sectors.py:SectorPluginBase:create_test_plot

Checklist for Completion