summaryrefslogtreecommitdiff
path: root/silx/math/medianfilter/test/benchmark.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/math/medianfilter/test/benchmark.py')
-rw-r--r--silx/math/medianfilter/test/benchmark.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/silx/math/medianfilter/test/benchmark.py b/silx/math/medianfilter/test/benchmark.py
index 0d1da94..cbb16b3 100644
--- a/silx/math/medianfilter/test/benchmark.py
+++ b/silx/math/medianfilter/test/benchmark.py
@@ -1,6 +1,6 @@
# coding: utf-8
# /*##########################################################################
-# Copyright (C) 2017 European Synchrotron Radiation Facility
+# Copyright (C) 2017-2019 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -108,7 +108,6 @@ class BenchmarkMedianFilter(object):
return res
-global app # QApplication must be global to avoid seg fault on quit
app = qt.QApplication([])
kernels = [3, 5, 7, 11, 15]
benchmark = BenchmarkMedianFilter(imageWidth=1000, kernels=kernels)
@@ -120,3 +119,4 @@ if pymca is not None:
plot.addCurve(x=kernels, y=benchmark.getExecTimeFor("pymca"), legend='pymca')
plot.show()
app.exec_()
+del app