Package diffpy :: Package pdfgui :: Package control :: Module organizer :: Class Organizer
[hide private]
[frames] | no frames]

Class Organizer

source code

               object --+    
                        |    
pdfcomponent.PDFComponent --+
                            |
                           Organizer
Known Subclasses:
fitting.Fitting

Base class for Fitting. It holds separate lists of datasets,
strucs and calculations

datasets:     dataset list
strucs:       structure list
calcs:        calculation list



Instance Methods [hide private]
 
__findList(self, id) source code
 
__forward_spdiameter(self)
Copy spdiameter value loaded from fit or calculation to phase.
source code
 
__init__(self, name)
initialize...
source code
 
add(self, id, position=None)
add structure/dataset/calculation...
source code
 
copy(self, other=None)
copy self to other.
source code
 
getCalculation(self, pos)
get calculation by position...
source code
 
getDataSet(self, pos)
get dataset by position...
source code
 
getStructure(self, pos)
get structure by position...
source code
 
hasCalculations(self)
Check to see if there are calculations.
source code
 
hasDataSets(self)
Check to see if there are datasets.
source code
 
hasStructures(self)
Check to see if there are structures.
source code
 
index(self, id)
find the position of item in the list...
source code
 
load(self, z, subpath)
load data from a zipped project file...
source code
 
organization(self)
get internal organization...
source code
 
remove(self, id)
remove structure/dataset/calculation...
source code
 
rename(self, id, newname)
rename structure/dataset/calculation...
source code
 
save(self, z, subpath)
save data from a zipped project file...
source code

Inherited from pdfcomponent.PDFComponent: close

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__forward_spdiameter(self)

source code 
Copy spdiameter value loaded from fit or calculation to phase.

This method takes care of loading old PDFgui projects where
spdiameter belonged to FitDataSet or Calculation classes.
It should be called only from the Organizer.load method.

__init__(self, name)
(Constructor)

source code 
initialize

name -- component name

Overrides: pdfcomponent.PDFComponent.__init__

add(self, id, position=None)

source code 
add structure/dataset/calculation

id       -- reference to structure/dataset/calculation
position -- position to insert, by default the last one

copy(self, other=None)

source code 
copy self to other. if other is None, create an instance

other -- ref to other object
returns reference to copied object

getCalculation(self, pos)

source code 
get calculation by position

pos -- the position of calculation in the list

getDataSet(self, pos)

source code 
get dataset by position

pos -- the position of dataset in the list

getStructure(self, pos)

source code 
get structure by position

pos -- the position of structure in the list

index(self, id)

source code 
find the position of item in the list

id -- id of object
return : object position

load(self, z, subpath)

source code 
load data from a zipped project file

z -- zipped project file
subpath -- path to its own storage within project file

returns a tree of internal hierachy

organization(self)

source code 
get internal organization

returns a tree of internal hierachy

remove(self, id)

source code 
remove structure/dataset/calculation

id -- reference to structure/dataset/calculation

rename(self, id, newname)

source code 
rename structure/dataset/calculation

id -- reference to structure/dataset/calculation
newname -- new name to be given

save(self, z, subpath)

source code 
save data from a zipped project file

z -- zipped project file
subpath -- path to its own storage within project file