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
70f8dbb1
Commit
70f8dbb1
authored
1 year ago
by
Mikhail Svechnikov
Committed by
Mikhail Svechnikov
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
add Scale::coordName()
parent
909edf40
No related branches found
No related tags found
1 merge request
!2178
Do a coordinates conversion for loaded specular data (#811)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Base/Axis/Scale.cpp
+5
-0
5 additions, 0 deletions
Base/Axis/Scale.cpp
Base/Axis/Scale.h
+1
-0
1 addition, 0 deletions
Base/Axis/Scale.h
with
6 additions
and
0 deletions
Base/Axis/Scale.cpp
+
5
−
0
View file @
70f8dbb1
...
@@ -64,6 +64,11 @@ std::string Scale::axisLabel() const
...
@@ -64,6 +64,11 @@ std::string Scale::axisLabel() const
return
m_coord
->
label
();
return
m_coord
->
label
();
}
}
std
::
string
Scale
::
coordName
()
const
{
return
Coordinate
(
axisLabel
()).
name
();
}
std
::
string
Scale
::
unit
()
const
std
::
string
Scale
::
unit
()
const
{
{
return
Coordinate
(
axisLabel
()).
unit
();
return
Coordinate
(
axisLabel
()).
unit
();
...
...
This diff is collapsed.
Click to expand it.
Base/Axis/Scale.h
+
1
−
0
View file @
70f8dbb1
...
@@ -80,6 +80,7 @@ public:
...
@@ -80,6 +80,7 @@ public:
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
ostr
,
const
Scale
&
ax
);
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
ostr
,
const
Scale
&
ax
);
std
::
string
coordName
()
const
;
std
::
string
unit
()
const
;
std
::
string
unit
()
const
;
Scale
plottableScale
()
const
;
Scale
plottableScale
()
const
;
...
...
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