Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
92ae49ab
Commit
92ae49ab
authored
Mar 22, 2021
by
Joshua Santana
Browse files
[FIX
#147
] ignore rows with cluster size < 1 and cluster size > 35
parent
6325b8cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/modules/filterProtonData/WCsvConverter.cpp
src/modules/filterProtonData/WCsvConverter.cpp
+7
-0
No files found.
src/modules/filterProtonData/WCsvConverter.cpp
View file @
92ae49ab
...
@@ -84,6 +84,13 @@ void WCsvConverter::setOutputFromCSV( )
...
@@ -84,6 +84,13 @@ void WCsvConverter::setOutputFromCSV( )
continue
;
continue
;
}
}
float
edep
=
stringToDouble
(
dataRow
->
at
(
m_indexes
->
getEdep
()
)
);
if
(
getClusterSize
(
edep
)
<
1.0
||
getClusterSize
(
edep
)
>
35.0
)
{
continue
;
}
addVertex
(
dataRow
);
addVertex
(
dataRow
);
addColor
(
plainColor
);
addColor
(
plainColor
);
addEdepAndSize
(
dataRow
,
&
maxEdep
);
addEdepAndSize
(
dataRow
,
&
maxEdep
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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