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
d1fe1c23
Commit
d1fe1c23
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm fct ICoordSystem::throwUnitsError
parent
d432284e
No related branches found
No related tags found
1 merge request
!1556
cleanup CoordSyst classes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Device/Coord/ICoordSystem.cpp
+0
-16
0 additions, 16 deletions
Device/Coord/ICoordSystem.cpp
Device/Coord/ICoordSystem.h
+0
-1
0 additions, 1 deletion
Device/Coord/ICoordSystem.h
with
0 additions
and
17 deletions
Device/Coord/ICoordSystem.cpp
+
0
−
16
View file @
d1fe1c23
...
...
@@ -31,22 +31,6 @@ std::vector<const IAxis*> ICoordSystem::convertedAxes(Coords units) const
return
result
;
}
void
ICoordSystem
::
throwUnitsError
(
std
::
string
method
,
std
::
vector
<
Coords
>
available
)
const
{
static
const
std
::
map
<
Coords
,
const
char
*>
axisUnitLabel
=
{
{
Coords
::
UNDEFINED
,
"undefined"
},
{
Coords
::
NBINS
,
"bin"
},
{
Coords
::
RADIANS
,
"rad"
},
{
Coords
::
DEGREES
,
"deg"
},
{
Coords
::
MM
,
"mm"
},
{
Coords
::
QSPACE
,
"1/nm"
},
{
Coords
::
RQ4
,
"nm^-4?"
}};
std
::
stringstream
ss
;
ss
<<
"Unit type error in "
<<
method
<<
": unknown or unsupported unit type. Available units "
"are:
\n
"
;
for
(
auto
unit
:
available
)
ss
<<
axisUnitLabel
.
at
(
unit
)
<<
"
\n
"
;
throw
std
::
runtime_error
(
ss
.
str
());
}
Coords
ICoordSystem
::
substituteDefaultUnits
(
Coords
units
)
const
{
return
units
==
Coords
::
UNDEFINED
?
defaultUnits
()
:
units
;
...
...
This diff is collapsed.
Click to expand it.
Device/Coord/ICoordSystem.h
+
0
−
1
View file @
d1fe1c23
...
...
@@ -56,7 +56,6 @@ public:
protected:
Coords
substituteDefaultUnits
(
Coords
units
)
const
;
[[
noreturn
]]
void
throwUnitsError
(
std
::
string
method
,
std
::
vector
<
Coords
>
available
)
const
;
};
#endif // BORNAGAIN_DEVICE_COORD_ICOORDSYSTEM_H
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