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
f9047a23
Commit
f9047a23
authored
1 year ago
by
Wuttke, Joachim
Committed by
Wuttke, Joachim
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
assert valid Frame index
parent
40c9eb9e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Base/Axis/Frame.cpp
+3
-0
3 additions, 0 deletions
Base/Axis/Frame.cpp
Device/Histo/SimulationResult.cpp
+1
-2
1 addition, 2 deletions
Device/Histo/SimulationResult.cpp
with
4 additions
and
2 deletions
Base/Axis/Frame.cpp
+
3
−
0
View file @
f9047a23
...
@@ -54,6 +54,7 @@ size_t Frame::size() const
...
@@ -54,6 +54,7 @@ size_t Frame::size() const
const
Scale
&
Frame
::
axis
(
size_t
k_axis
)
const
const
Scale
&
Frame
::
axis
(
size_t
k_axis
)
const
{
{
ASSERT
(
k_axis
<
rank
());
return
*
m_axes
.
at
(
k_axis
);
return
*
m_axes
.
at
(
k_axis
);
}
}
const
Scale
&
Frame
::
xAxis
()
const
const
Scale
&
Frame
::
xAxis
()
const
...
@@ -62,11 +63,13 @@ const Scale& Frame::xAxis() const
...
@@ -62,11 +63,13 @@ const Scale& Frame::xAxis() const
}
}
const
Scale
&
Frame
::
yAxis
()
const
const
Scale
&
Frame
::
yAxis
()
const
{
{
ASSERT
(
1
<
rank
());
return
*
m_axes
.
at
(
1
);
return
*
m_axes
.
at
(
1
);
}
}
size_t
Frame
::
projectedSize
(
size_t
k_axis
)
const
size_t
Frame
::
projectedSize
(
size_t
k_axis
)
const
{
{
ASSERT
(
k_axis
<
rank
());
return
m_axes
[
k_axis
]
->
size
();
return
m_axes
[
k_axis
]
->
size
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Device/Histo/SimulationResult.cpp
+
1
−
2
View file @
f9047a23
...
@@ -56,8 +56,7 @@ std::vector<double> SimulationResult::convertedBinCenters() const
...
@@ -56,8 +56,7 @@ std::vector<double> SimulationResult::convertedBinCenters() const
std
::
vector
<
double
>
SimulationResult
::
convertedBinCenters
(
size_t
i_axis
)
const
std
::
vector
<
double
>
SimulationResult
::
convertedBinCenters
(
size_t
i_axis
)
const
{
{
ASSERT
(
i_axis
<
frame
().
rank
());
return
frame
().
axis
(
i_axis
).
binCenters
();
return
frame
().
axis
(
i_axis
).
binCenters
();
}
}
void
SimulationResult
::
setTitle
(
const
std
::
string
&
title
)
void
SimulationResult
::
setTitle
(
const
std
::
string
&
title
)
...
...
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