Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas White
pinkindexer
Commits
83fd095f
Commit
83fd095f
authored
Dec 20, 2018
by
Yaroslav Gevorkov
Browse files
catch bad input
parent
be431fc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PinkIndexer.cpp
View file @
83fd095f
...
...
@@ -28,6 +28,9 @@ PinkIndexer::PinkIndexer(const ExperimentSettings& experimentSettings, Considere
int
PinkIndexer
::
indexPattern
(
Lattice
&
indexedLattice
,
Vector2f
&
centerShift
,
Array
<
bool
,
Dynamic
,
1
>&
fittedPeaks
,
RowVectorXf
&
intensities
,
const
Matrix3Xf
&
meanReciprocalPeaks_1_per_A
,
int
threadCount
)
{
if
(
meanReciprocalPeaks_1_per_A
.
cols
()
<
2
)
return
0
;
Matrix2Xf
detectorPeaks_m
;
reciprocalToRealProjection
.
project
(
detectorPeaks_m
,
meanReciprocalPeaks_1_per_A
);
return
indexPattern
(
indexedLattice
,
centerShift
,
fittedPeaks
,
intensities
,
detectorPeaks_m
,
threadCount
);
...
...
@@ -36,6 +39,9 @@ int PinkIndexer::indexPattern(Lattice& indexedLattice, Vector2f& centerShift, Ar
int
PinkIndexer
::
indexPattern
(
Lattice
&
indexedLattice
,
Vector2f
&
centerShift
,
Array
<
bool
,
Dynamic
,
1
>&
fittedPeaks
,
RowVectorXf
&
intensities
,
const
Matrix2Xf
&
detectorPeaks_m
,
int
threadCount
)
{
if
(
detectorPeaks_m
.
cols
()
<
2
)
return
0
;
Matrix3Xf
ucsDirections
;
Array2Xf
ucsBorderNorms
;
backprojection
.
backProject
(
detectorPeaks_m
,
ucsDirections
,
ucsBorderNorms
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment