Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
generic.models.Organizational.PlotRegistry Class Reference
Inheritance diagram for generic.models.Organizational.PlotRegistry:
object

Public Member Functions

def __init__ (self)
 
def __repr__ (self)
 
def AddPlot (self, plot_key, plot_summary)
 
def AddComparisonPlot (self, plot_key, plot_summary)
 
def AddDatasetPlots (self, dataset, plot_summaries)
 
def Serialize (self, base_path)
 

Static Public Member Functions

def Deserialize (file_name)
 

Public Attributes

 plots_by_dataset
 
 dataset_comparisons
 
short int type
 
short int number
 
char name [SIZE_OF_OBJ_NAME]
 
cat_entry star
 

Static Public Attributes

string SERIALIZE_FILENAME = "plot_registry.pkl"
 

Detailed Description

Collect summaries of plots drawn and where they were written in the same place 

Definition at line 365 of file Organizational.py.

Constructor & Destructor Documentation

def generic.models.Organizational.PlotRegistry.__init__ (   self)

Member Function Documentation

def generic.models.Organizational.PlotRegistry.__repr__ (   self)

Definition at line 374 of file Organizational.py.

References generic.models.Organizational.PlotRegistry.dataset_comparisons, and generic.models.Organizational.PlotRegistry.plots_by_dataset.

374  def __repr__(self):
375  return "PlotRegistry:\n by dataset: %s\n cross-dataset comparisons: %s" % (pprint.pformat(self.plots_by_dataset), pprint.pformat(self.dataset_comparisons))
376 
def generic.models.Organizational.PlotRegistry.AddComparisonPlot (   self,
  plot_key,
  plot_summary 
)

Definition at line 382 of file Organizational.py.

References generic.models.Organizational.PlotRegistry.dataset_comparisons.

382  def AddComparisonPlot(self, plot_key, plot_summary):
383  self.dataset_comparisons[plot_key] = plot_summary
384 
def AddComparisonPlot(self, plot_key, plot_summary)
def generic.models.Organizational.PlotRegistry.AddDatasetPlots (   self,
  dataset,
  plot_summaries 
)

Definition at line 385 of file Organizational.py.

385  def AddDatasetPlots(self, dataset, plot_summaries):
386  collection = self.plots_by_dataset.setdefault(dataset, PlotLibrary())
387  collection.update(plot_summaries)
388 
def AddDatasetPlots(self, dataset, plot_summaries)
def generic.models.Organizational.PlotRegistry.AddPlot (   self,
  plot_key,
  plot_summary 
)

Definition at line 377 of file Organizational.py.

377  def AddPlot(self, plot_key, plot_summary):
378  assert isinstance(plot_key, PlotCollectionKey)
379 
380  self.plots_by_dataset.setdefault(plot_key.data_set, PlotLibrary())[plot_key] = plot_summary
381 
def AddPlot(self, plot_key, plot_summary)
def generic.models.Organizational.PlotRegistry.Deserialize (   file_name)
static

Definition at line 393 of file Organizational.py.

References open().

393  def Deserialize(file_name):
394  obj = cPickle.load(open(file_name))
395  if not isinstance(obj, PlotRegistry):
396  raise TypeError("Object loaded from alleged PlotRegistry file is actually a %s" % type(obj))
397  return obj
398 
procfile open("FD_BRL_v0.txt")
def generic.models.Organizational.PlotRegistry.Serialize (   self,
  base_path 
)

Definition at line 389 of file Organizational.py.

References open().

389  def Serialize(self, base_path):
390  cPickle.dump(self, open(os.path.join(base_path, PlotRegistry.SERIALIZE_FILENAME), "w"))
391 
procfile open("FD_BRL_v0.txt")

Member Data Documentation

generic.models.Organizational.PlotRegistry.dataset_comparisons
char object::name
inherited
short int object::number
inherited

Definition at line 115 of file novas.h.

generic.models.Organizational.PlotRegistry.plots_by_dataset
string generic.models.Organizational.PlotRegistry.SERIALIZE_FILENAME = "plot_registry.pkl"
static

Definition at line 368 of file Organizational.py.

cat_entry object::star
inherited

Definition at line 117 of file novas.h.

short int object::type
inherited

Definition at line 114 of file novas.h.


The documentation for this class was generated from the following file: