Skip to content

Commit

Permalink
Fix missing sys module
Browse files Browse the repository at this point in the history
  • Loading branch information
adrabent authored Sep 3, 2024
1 parent 10ee36c commit 76c223e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions losoto/operations/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def run( soltab, doUnwrap=False, refAnt='', plotName='', ndiv=1 ):
if plotName != '':
if plotName.split('.')[-1] != 'png': plotName += '.png' # add png

import sys
if not 'matplotlib' in sys.modules:
import matplotlib as mpl
mpl.use("Agg")
Expand Down

0 comments on commit 76c223e

Please sign in to comment.