Skip to content
Snippets Groups Projects
Commit c51c7c8a authored by wactbprot's avatar wactbprot
Browse files

.

parent 42b3ed3e
No related branches found
No related tags found
No related merge requests found
function(doc) {
if(doc.Calibration){
var dc = doc.Calibration;
if(dc.Measurement &&
dc.Measurement.Values){
var values = dc.Measurement.Values;
for(quantity in values){
for(j in values[quantity]){
if(values[quantity][j].Unit){
emit([quantity, values[quantity][j].Unit],1);
}
}
}
}
if(dc.Analysis &&
dc.Analysis.Values){
var values = dc.Analysis.Values;
for(quantity in values){
for(j in values[quantity]){
if(values[quantity][j].Unit){
emit([quantity, values[quantity][j].Unit],1);
}
}
}
}
}
}
\ No newline at end of file
function(k, v, c){
return sum(v);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment