Author: bugman
Date: Wed Sep 17 17:11:51 2014
New Revision: 25884
URL: http://svn.gna.org/viewcvs/relax?rev=25884&view=rev
Log:
Added a backwards compatibility hook for state and results files for the Sobol'
sequence changes.
The data pipe num_int_pts variable is now renamed to sobol_max_points when
present, and the
sobol_oversample variable is created and set to 1.
Modified:
branches/frame_order_cleanup/data_store/__init__.py
Modified: branches/frame_order_cleanup/data_store/__init__.py
URL:
http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/data_store/__init__.py?rev=25884&r1=25883&r2=25884&view=diff
==============================================================================
--- branches/frame_order_cleanup/data_store/__init__.py (original)
+++ branches/frame_order_cleanup/data_store/__init__.py Wed Sep 17 17:11:51 2014
@@ -340,6 +340,15 @@
# And finally count the elements and sort the list.
dp.spectrometer_frq_count = len(dp.spectrometer_frq_list)
dp.spectrometer_frq_list.sort()
+
+ # Convert the Sobol' integration information.
+ if hasattr(dp, 'num_int_pts'):
+ # Convert to the new structure.
+ dp.sobol_max_points = dp.num_int_pts
+ del dp.num_int_pts
+
+ # Add the oversampling variable.
+ cdp.sobol_oversample = 1
def add(self, pipe_name, pipe_type, bundle=None, switch=True):
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits