Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xsocs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kmap
xsocs
Commits
827d41da
Commit
827d41da
authored
Nov 09, 2018
by
Thomas Vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tooltip and doc for background subtracion modes
parent
6d1855cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
xsocs/gui/process/FitWidget.py
xsocs/gui/process/FitWidget.py
+5
-0
xsocs/process/fit/peak_fit.py
xsocs/process/fit/peak_fit.py
+6
-0
No files found.
xsocs/gui/process/FitWidget.py
View file @
827d41da
...
...
@@ -189,6 +189,11 @@ class FitWidget(Qt.QWidget):
layout
.
addRow
(
'File:'
,
self
.
__fileEdit
)
self
.
__bgComboBox
=
Qt
.
QComboBox
()
self
.
__bgComboBox
.
setToolTip
(
"Select background subtraction mode:<br><br>"
"<b>-</b>: No background<br>"
"<b>Constant</b>: Shift data so that min is 0<br>"
"<b>Linear</b>: Linear background from first to last data"
)
self
.
__bgComboBox
.
addItem
(
'-'
,
BackgroundTypes
.
NONE
)
self
.
__bgComboBox
.
addItem
(
'Constant'
,
BackgroundTypes
.
CONSTANT
)
self
.
__bgComboBox
.
addItem
(
'Linear'
,
BackgroundTypes
.
LINEAR
)
...
...
xsocs/process/fit/peak_fit.py
View file @
827d41da
...
...
@@ -50,6 +50,12 @@ disp_times = False
class
BackgroundTypes
(
object
):
"""Enum of background subtraction types:
- NONE: No background
- CONSTANT: Remove constant (= min of the data) background
- LINEAR: Remove linear background using line from first to last data
"""
ALLOWED
=
range
(
3
)
NONE
,
CONSTANT
,
LINEAR
=
ALLOWED
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment