Menu

Commit [r2772]  Maximize  Restore  History

Due to the failure of 'state.save()', i.e. can't pickle, 'data.py' has been split up and redesigned.

A new directory 'data' has been created to all the modules for constructing 'self.relax.data'. The
file 'data.py' has been moved into the directory as 'data/main.py' and duplicated into three more
files.

All the 'self._auto_object*()' methods for automatically creating the diffusion tensor data
structures have been shifted into the module 'data.diff_tensor_auto_objects'. These have been
converted into functions and all references to 'self' have been eliminated. The local namespace of
'self.relax.data.diff[run]' is now passed into these functions as the first argument to allow its
objects to be accessed. This change fixes the pickling problem and restores the state saving and
loading functions.

In the module 'data.diff_tensor', all that remains of the original 'data.py' file is the data
containers 'DiffTensorData' and 'DiffTensorElement' as well as the 'DiffAutoNumericObject' and
'DiffAutoSimArrayObject' automatically generated objects. The first two classes assign the
'auto_object*()' functions to specific instances of the last two classes which then call the
functions to obtain the data.

The data containers 'Element', 'SpecificData', 'Residue', and 'ResidueList' are located in the
module 'data.data_classes'.

All that remains in the original 'data.py' file ('data/main.py') is the basal data container 'Data'.

The files 'relax', 'prompt/init_data.py', and 'thread_classes.py' have been modified to import the
correct modules.

bugman 2006-11-08

added /branches/tensor_pdb/data
copied /branches/tensor_pdb/data.py -> /branches/tensor_pdb/data/data_classes.py
copied /branches/tensor_pdb/data.py -> /branches/tensor_pdb/data/diff_tensor.py
copied /branches/tensor_pdb/data.py -> /branches/tensor_pdb/data/diff_tensor_auto_objects.py
copied /branches/tensor_pdb/data.py -> /branches/tensor_pdb/data/main.py
copied /branches/tensor_pdb/generic_fns/__init__.py -> /branches/tensor_pdb/data/__init__.py
changed /branches/tensor_pdb/prompt/init_data.py
changed /branches/tensor_pdb/relax
changed /branches/tensor_pdb/thread_classes.py
/branches/tensor_pdb/prompt/init_data.py Diff Switch to side-by-side view
Loading...
/branches/tensor_pdb/relax Diff Switch to side-by-side view
Loading...
/branches/tensor_pdb/thread_classes.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.