Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
71ebb013
Commit
71ebb013
authored
2 years ago
by
Mikhail Svechnikov
Browse files
Options
Downloads
Plain Diff
[link_specular] Fix linking data to specular instrument (
#544
) ()
Merging branch 'link_specular' into 'r20.0'. See merge request
!1517
parents
d11a45c5
b1ea9f2e
No related branches found
No related tags found
2 merge requests
!1525
Updates from r20.0
,
!1517
Fix linking data to specular instrument (#544)
Pipeline
#93566
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GUI/Model/Device/InstrumentItems.cpp
+3
-9
3 additions, 9 deletions
GUI/Model/Device/InstrumentItems.cpp
GUI/View/Instrument/AlphaScanEditor.cpp
+3
-3
3 additions, 3 deletions
GUI/View/Instrument/AlphaScanEditor.cpp
with
6 additions
and
12 deletions
GUI/Model/Device/InstrumentItems.cpp
+
3
−
9
View file @
71ebb013
...
...
@@ -401,16 +401,10 @@ bool SpecularInstrumentItem::alignedWith(const RealItem* item) const
if
(
!
item
->
hasNativeData
())
return
false
;
// TODO do not compare native axis with main data axis due to different units
// remove native data from everywhere
// TODO remove native data from everywhere
// https://jugit.fz-juelich.de/mlz/bornagain/-/issues/331
//
// const auto& native_axis = item->nativeDatafield()->axis(0);
// return *instrumentAxis == native_axis;
//
// compare instrument axis with the main data axis instead
const
auto
&
data_axis
=
item
->
dataItem
()
->
datafield
()
->
axis
(
0
);
return
*
instrumentAxis
==
data_axis
;
const
auto
&
native_axis
=
item
->
nativeDatafield
()
->
axis
(
0
);
return
*
instrumentAxis
==
native_axis
;
}
const
ICoordSystem
*
SpecularInstrumentItem
::
createCoordSystem
()
const
...
...
This diff is collapsed.
Click to expand it.
GUI/View/Instrument/AlphaScanEditor.cpp
+
3
−
3
View file @
71ebb013
...
...
@@ -52,10 +52,10 @@ AlphaScanEditor::AlphaScanEditor(QWidget* parent, GrazingScanItem* item)
gform
->
addRow
(
m_selector
);
//... update axis type combo (needs m_form)
if
(
idx
!=
typeComboBox
->
currentIndex
())
if
(
idx
!=
typeComboBox
->
currentIndex
())
{
typeComboBox
->
setCurrentIndex
(
idx
);
else
onAxisTypeSelected
(
idx
);
// trigger update manually
onAxisTypeSelected
(
idx
);
}
typeComboBox
->
setEnabled
(
m_item
->
pointwiseAlphaAxisDefined
());
connect
(
typeComboBox
,
qOverload
<
int
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
AlphaScanEditor
::
onAxisTypeSelected
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment