22 lines
750 B
JavaScript
22 lines
750 B
JavaScript
|
|
import debugMissing from './debugMissing.js';
|
|
|
|
export default async(parsed, conf) => {
|
|
if (conf.env != 'dev') return;
|
|
|
|
// TOTAL READS BY ANTENNA
|
|
const totalRead = [0, 0, 0, 0];
|
|
for (let read of parsed.extended)
|
|
totalRead[read.antenna - 1]++;
|
|
console.log('TOTAL READ ANTENNA:', totalRead);
|
|
// UNIQUE READS BY ANTENNA
|
|
const uniqueRead = [new Set(), new Set(), new Set(), new Set()];
|
|
for (let read of parsed.extended)
|
|
uniqueRead[read.antenna - 1].add(read.code);
|
|
|
|
console.log('UNIQUE READ ANTENNA:', uniqueRead[0].size, uniqueRead[1].size, uniqueRead[2].size, uniqueRead[3].size);
|
|
|
|
debugMissing(uniqueRead);
|
|
console.log('----------------------------------------------------------------');
|
|
};
|