set fit toolbar a name; fixes #281
This commit is contained in:
parent
dd471ae294
commit
a8fcd658d9
@ -10,7 +10,7 @@ class FitToolbar(QtWidgets.QToolBar):
|
||||
limit_menu: QtWidgets.QMenu,
|
||||
parent=None,
|
||||
):
|
||||
super().__init__(parent=parent)
|
||||
super().__init__('Fit', parent=parent)
|
||||
|
||||
self.fit_action = fitaction
|
||||
self.region = RegionItem()
|
||||
|
@ -3,7 +3,12 @@ from ctypes import c_double, cast, pointer, c_void_p
|
||||
|
||||
import numpy as np
|
||||
from scipy import LowLevelCallable
|
||||
from scipy.integrate import quad, simps as simpson
|
||||
|
||||
from scipy.integrate import quad
|
||||
try:
|
||||
from scipy.integrate import simps as simpson
|
||||
except ImportError:
|
||||
from scipy.integrate import simpson
|
||||
|
||||
from .base import Distribution
|
||||
from ..lib.utils import ArrayLike
|
||||
|
Loading…
Reference in New Issue
Block a user