Skip to content
Snippets Groups Projects
Commit 278f6184 authored by Alex Almanza's avatar Alex Almanza
Browse files

Update EMLService.java

parent 90b1c018
No related branches found
No related tags found
1 merge request!44Rapiscan latest
...@@ -69,12 +69,17 @@ public class EMLService implements IEventListener { ...@@ -69,12 +69,17 @@ public class EMLService implements IEventListener {
synchronized (this) { synchronized (this) {
try { try {
String[] streamArray = new String[this.scanDataList.size() + 2]; if(this.latestGammaBackground != null)
streamArray[0] = this.latestGammaBackground != null ? this.latestGammaBackground : ""; this.scanDataList.add(0, this.latestGammaBackground);
streamArray[1] = this.latestNeutronBackground != null ? this.latestNeutronBackground : ""; if(this.latestNeutronBackground != null)
for(int i = 2; i < streamArray.length; i++) { this.scanDataList.add(0, this.latestNeutronBackground);
String[] streamArray = new String[this.scanDataList.size()];
for(int i = 0; i < streamArray.length; i++) {
streamArray[i] = this.scanDataList.get(i); streamArray[i] = this.scanDataList.get(i);
} }
Stream<String> stream = Stream.of(streamArray); Stream<String> stream = Stream.of(streamArray);
results = ernieLane.process(stream); results = ernieLane.process(stream);
System.out.println("ERNIE Results"); System.out.println("ERNIE Results");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment