Package madrona :: Package analysistools :: Module models :: Class Analysis
[hide private]

Class Analysis

source code

django.contrib.gis.db.models.Model --+    
                                     |    
               features.models.Feature --+
                                         |
                                        Analysis

Abstract Feature model representing the inputs and outputs of an analysis or modeling run

Nested Classes [hide private]
  Meta
Instance Methods [hide private]
 
kml(self) source code
 
kml_done(self)
Translate the model outputs to KML Placemark or Folder
source code
 
kml_working(self)
Translate the model outputs to KML Placemark or Folder
source code
 
kml_style(self) source code
 
inputs(self)
Returns a dict of all input parameters
source code
 
outputs(self)
Returns a dict of all output parameters If processing is incomplete, values will be None
source code
 
status_html(self) source code
 
progress(self)
How many sub-tasks completed out of a total e.g.
source code
 
done(self)
If it's asynchronously processed, this is the definitive property to determine if processing is completed.
source code
 
run(self)
Method to execute the model.
source code
 
clear_output_fields(self)
Reset button; Sets all output fields to None
source code
 
save(self, rerun=True, *args, **kwargs) source code

Inherited from features.models.Feature: __repr__, __unicode__, add_to_collection, copy, get_absolute_url, hash, is_viewable, kml_safe, options, remove_from_collection, share_with, uid

Class Methods [hide private]
 
input_fields(klass) source code
 
input_manytomany_fields(klass) source code
 
output_fields(klass) source code

Inherited from features.models.Feature: css, get_options, model_uid

Class Variables [hide private]

Inherited from features.models.Feature: collection, content_type, date_created, date_modified, name, object_id, objects, sharing_groups, user

Method Details [hide private]

kml(self)

source code 
Decorators:
  • @property

kml_done(self)

source code 

Translate the model outputs to KML Placemark or Folder

Decorators:
  • @property

kml_working(self)

source code 

Translate the model outputs to KML Placemark or Folder

Decorators:
  • @property

kml_style(self)

source code 
Decorators:
  • @property

inputs(self)

source code 

Returns a dict of all input parameters

Decorators:
  • @property

outputs(self)

source code 

Returns a dict of all output parameters If processing is incomplete, values will be None

Decorators:
  • @property

status_html(self)

source code 
Decorators:
  • @property

progress(self)

source code 

How many sub-tasks completed out of a total e.g. (3,6) means 3 out of 6 pieces are complete so progress bar can show 50%

Decorators:
  • @property

done(self)

source code 

If it's asynchronously processed, this is the definitive property to determine if processing is completed.

Decorators:
  • @property

run(self)

source code 

Method to execute the model. Passes all input parameters to the analysis backend, takes the results and stores in the model output fields.

save(self, rerun=True, *args, **kwargs)

source code 
Overrides: features.models.Feature.save