Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-2588

Catch RuntimeError on matplotlib.pyplot import and remove more unprotected/unnecesary pyplot imports

    Details

    • Templates:
    • Team:
      SQuaRE

      Description

      Catch RuntimeError in addition to ImportError when testing for matplotlib with things like:

      from matplotlib import pyplot
      import matplotlib.pyplot as plt
      

      I have some weird issue on my laptop where

      from matplotlib import pyplot
      

      throws a RuntimeError when DISPLAY is unset.
      scons unsets DISPLAY when compiling.

      This bug has allowed me to notice a few unncessary imports of pyplot, particular in test cases.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wmwood-vasey Michael Wood-Vasey
                Reporter:
                wmwood-vasey Michael Wood-Vasey
                Reviewers:
                Jim Bosch
                Watchers:
                Jim Bosch, John Swinbank, Mario Juric, Michael Wood-Vasey, Robert Lupton, Russell Owen, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Summary Panel

                    Time Tracking

                    Estimated:
                    Original Estimate - 4 hours
                    4h
                    Remaining:
                    Remaining Estimate - 4 hours
                    4h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified