Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: meas_algorithms
-
Labels:
-
Story Points:1
-
Epic Link:
-
Sprint:Alert Production S17 - 12
-
Team:Alert Production
Description
meas_algorithms has several "naked" matplotlib imports that happen at the top level, and thus prevent anything that imports meas_algorithms from subsequently setting the backend. A simple fix is to move those imports into the functions where matplotlib is used, so they only occur if matplotlib is run, and preferably wrap them in try:except and log.warn on any errors.
This is a stop-gap until 5790 is properly dealt with.
Starting this while
DM-7444is in review, so I can maybe get them in together.