Merge pull request #655 from campagnola/fractal-fix

add reduce import to fractal demo
This commit is contained in:
Luke Campagnola 2018-03-29 08:57:36 -07:00 committed by GitHub
commit 6eb5a324b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ Displays an interactive Koch fractal
"""
import initExample ## Add path to library (just for examples; you do not need this)
from functools import reduce
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui
import numpy as np
@ -112,11 +113,3 @@ if __name__ == '__main__':
if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
QtGui.QApplication.instance().exec_()