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
5a699000
Commit
5a699000
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
RealItem + comment by Mikhail to explain native vs regular data
parent
883198a9
No related branches found
No related tags found
1 merge request
!1638
rename BaseUtil -> Base, and minor cleanup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/Model/Device/RealItem.h
+11
-0
11 additions, 0 deletions
GUI/Model/Device/RealItem.h
with
11 additions
and
0 deletions
GUI/Model/Device/RealItem.h
+
11
−
0
View file @
5a699000
...
...
@@ -140,6 +140,17 @@ private:
QString
m_presentationType
;
// DataItem can be `IntensityDataItem` and `SpecularDataItem` (default `IntensityDataItem`).
/*
"Native_data" is introduced and used in specular mode to keep the original axis
of the dataset. It also stores a copy of original intensity values inside datafield,
but these values are always the same for "data" and "native_data".
At the moment of loading file to RealItem "data" and "native_data" are completely equal.
But after linking RealItem to instrument and changing the current units the axis of "data"
is changed. When we unlink RealItem from instrument, we restore the original axis from
"native_data", because now there is no other way to transform axis without ICoordSystem
coming from instrument.
*/
std
::
unique_ptr
<
DataItem
>
m_dataItem
;
std
::
unique_ptr
<
DataItem
>
m_nativeDataItem
;
std
::
unique_ptr
<
AbstractDataLoader
>
m_dataLoader
;
...
...
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