project8 / Pypeline

A python interface for the dripline slow control system.
Other
2 stars 0 forks source link

sensor_dump run_info view should list egg files #47

Closed laroque closed 11 years ago

laroque commented 11 years ago

Update to these map/reduce:

function(doc) {
  if (doc.run_number >= 0) {
    egg_file = ''
    if (doc.mantis.command.output) {
      egg_file = doc.mantis.command.output
    }
    emit(doc.run_tag, {'run_number':doc.run_number,'run_timestamp':doc.run_timestamp,'egg_files':[egg_file]});
  }
}

function(keys, values, rereduce) {
    run_number = values[0].run_number
    run_timestamp = values[0].run_timestamp
    egg_files = []
    for(var i=0; i<values.length; i++) {
      egg_files = egg_files.concat(values[i].egg_files)
    }
  return {'run_number':run_number, 'run_timestamp':run_timestamp,'egg_files':egg_files}
}
laroque commented 11 years ago

done