Skip to content
yeealex93 edited this page Jul 13, 2012 · 2 revisions

File Summary Table

After uploading desired files, the editor's load module provides a file summary table as its module configuration. The table has the following features:

  • A comprehensive data range for each table cell represented as a black bar within a larger white bar that displays the total range for all files (ie minimum value for all files to the maximum value for all files).
  • A tooltip with data range values for each cell. Cells without data have instructional tooltips instead.
  • Column drop-down options to sort by a column or hide/show a column.
  • Checkboxes for selecting multiple files to pass along the wire for the reduction.

To configure an instrument object for the file summary table, the following things must be done:

  • The instrument object must have a field named "extrema" that is a dictionary mapping column headers to a 2-element list of min/max. i.e. myinstrument.extrema = { 'header1' : [min1, max1], 'header2' : [min2, max2], ....}. (See uploadFiles() in views.py on how the extrema format is employed.)
  • In views.py there is a call_appropriate_filereader() method that is used within uploadFiles(). Simply add the required file extensions to the conditionals so that it calls the appropriate reader.

Clone this wiki locally