ARLO Nester
Functions
workspace.tools.views.visualize Namespace Reference

Functions

def visualizeAudio (request, audioID)
 Visualize an audio file. More...
 
def tagRandomWindow (request, randomWindowTaggingBiasID, trialIndex)
 Visualize RandomWindows. More...
 
def createAudioSpectra (request)
 Create the Spectra displays for the web pages. More...
 

Function Documentation

def workspace.tools.views.visualize.createAudioSpectra (   request)

Create the Spectra displays for the web pages.

This functions is called through AJAX and works directly with the VisualizeAudioForm to navigate through files. The form and this function work together to display, generate, and navigate spectra from a file.

Note
This expects a POST request with a VisualizeAudioForm
Parameters
requestThe Django HTTP request object
Returns
A JSON dictionary with links to the new spectra and various parameters to update on the web form.
def workspace.tools.views.visualize.tagRandomWindow (   request,
  randomWindowTaggingBiasID,
  trialIndex 
)

Visualize RandomWindows.

Step through a set of randomly generated vindows and tag.

Parameters
requestThe Django HTTP request object
randomWindowTaggingBiasIdThe database Id of the random window job.
trialIndexWhich window are we on.
Returns
Django HTTP response object
def workspace.tools.views.visualize.visualizeAudio (   request,
  audioID 
)

Visualize an audio file.

Simple navigation interface, not tagging controls.

Parameters
requestThe Django HTTP request object
audioIDThe Database ID of the audio file to visualize
Returns
Django HTTP response object