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
658f75cf
Commit
658f75cf
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
mv constant to prevent error in clang-tidy
parent
03fd434b
No related branches found
No related tags found
1 merge request
!2184
cleanup as suggested by clang-tidy
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.clang-tidy
+0
-1
0 additions, 1 deletion
.clang-tidy
Device/Data/Datafield.cpp
+3
-3
3 additions, 3 deletions
Device/Data/Datafield.cpp
Device/Resolution/ConvolutionDetectorResolution.h
+3
-3
3 additions, 3 deletions
Device/Resolution/ConvolutionDetectorResolution.h
with
6 additions
and
7 deletions
.clang-tidy
+
0
−
1
View file @
658f75cf
...
...
@@ -121,7 +121,6 @@ Checks: '*,
-bugprone-misplaced-widening-cast,
-clang-analyzer-core.CallAndMessage,
-clang-analyzer-optin.cplusplus.VirtualCall,
-clang-diagnostic-error,
-cppcoreguidelines-pro-type-const-cast,
-cppcoreguidelines-pro-type-static-cast-downcast,
-google-runtime-references,
...
...
This diff is collapsed.
Click to expand it.
Device/Data/Datafield.cpp
+
3
−
3
View file @
658f75cf
...
...
@@ -27,9 +27,6 @@
namespace
{
auto
const
seed
=
123
;
auto
urbg
=
std
::
mt19937
(
seed
);
PyObject
*
npExport
(
const
Frame
&
frame
,
const
std
::
vector
<
double
>&
flatData
)
{
if
(
flatData
.
empty
())
...
...
@@ -429,6 +426,9 @@ Datafield Datafield::flat() const
Datafield
Datafield
::
noisy
(
double
prefactor
,
double
minimum
)
const
{
auto
const
seed
=
123
;
static
auto
urbg
=
std
::
mt19937
(
seed
);
std
::
vector
<
double
>
outval
(
size
());
std
::
vector
<
double
>
errval
(
size
());
for
(
size_t
i
=
0
;
i
<
size
();
++
i
)
{
...
...
This diff is collapsed.
Click to expand it.
Device/Resolution/ConvolutionDetectorResolution.h
+
3
−
3
View file @
658f75cf
...
...
@@ -41,7 +41,7 @@ public:
std
::
string
className
()
const
final
{
return
"ConvolutionDetectorResolution"
;
}
//! Convolve given intensities with the encapsulated resolution.
void
execDetectorResolution
(
Datafield
*
p_intensity_map
)
const
override
;
void
execDetectorResolution
(
Datafield
*
df
)
const
override
;
const
IResolutionFunction2D
*
getResolutionFunction2D
()
const
;
...
...
@@ -52,8 +52,8 @@ protected:
private
:
void
setResolutionFunction
(
const
IResolutionFunction2D
&
resFunc
);
void
apply1dConvolution
(
Datafield
*
p_intensity_map
)
const
;
void
apply2dConvolution
(
Datafield
*
p_intensity_map
)
const
;
void
apply1dConvolution
(
Datafield
*
df
)
const
;
void
apply2dConvolution
(
Datafield
*
df
)
const
;
double
getIntegratedPDF1d
(
double
x
,
double
step
)
const
;
double
getIntegratedPDF2d
(
double
x
,
double
step_x
,
double
y
,
double
step_y
)
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