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
Merge requests
!1296
In scan constructor, interpret limits as scan points, not as bin edges (
#423
)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
In scan constructor, interpret limits as scan points, not as bin edges (
#423
)
i423
into
main
Overview
0
Commits
4
Pipelines
1
Changes
34
Merged
Wuttke, Joachim
requested to merge
i423
into
main
2 years ago
Overview
0
Commits
4
Pipelines
1
Changes
34
Expand
This resolves
#423 (closed)
.
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
682aa440
4 commits,
2 years ago
34 files
+
141
−
56
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
34
Search (e.g. *.vue) (Ctrl+P)
Base/Axis/FixedBinAxis.cpp
+
11
−
0
Options
@@ -127,3 +127,14 @@ bool FixedBinAxis::equals(const IAxis& other) const
}
return
false
;
}
//... In global namespace.
FixedBinAxis
FixedScanAxis
(
const
std
::
string
&
name
,
size_t
nbins
,
double
scan_start
,
double
scan_end
)
{
if
(
nbins
<
2
)
throw
std
::
runtime_error
(
"Cannot create scan axis with less than two points"
);
const
double
delta
=
(
scan_end
-
scan_start
)
/
(
nbins
-
1
);
return
FixedBinAxis
(
name
,
nbins
,
scan_start
-
delta
/
2
,
scan_end
+
delta
/
2
);
}
Loading