Author: tlinnet Date: Wed May 28 17:55:10 2014 New Revision: 23546 URL: http://svn.gna.org/viewcvs/relax?rev=23546&view=rev Log: Reverted r23531-23526 as this would prevent a clean merge back into the trunk. The parameter_object changes should be perfomed in its own branch. And there was not a clean separation with the unit tests. The command used was: svn merge -r23531:23526 . ..... ------------------------------------------------------------------------ r23531 | tlinnet | 2014-05-28 16:49:08 +0200 (Wed, 28 May 2014) | 15 lines Added 9th and 10th unit test case for model B14. These tests are setup, to check how the function behaves under conditions of the grid-seach. Two tests are setup, which either use the default lower or upper bound of the parameters for the grid search. The return of the values are not checked, but the behaving of the function can be found when adding the --numpy-raise to run relax. This is related to: task #7793: (https://gna.org/task/?7793) Speed-up of dispersion models. These tests are implemented to show bug cases related to: Bug #22032: (bug #22032: Minimisation explodes when using Grid_INC=None) Minimisation explodes when using Grid_INC=None The function can return nan or inf values, which are not handled by the minimisation algorithm, causing it to stop. There needs to be mechanism to catch these cases. ------------------------------------------------------------------------ r23530 | tlinnet | 2014-05-28 16:49:06 +0200 (Wed, 28 May 2014) | 16 lines Added all the default values for the lower/upper bounds which is set for the parameters in the grid search. This is added in the collected table of specific_analysis/relax_disp/parameter_object.py. The values were extracted from: specific_analysis/relax_disp/optimisation.py in grid_search_setup(). This is related to: task #7793: (https://gna.org/task/?7793) Speed-up of dispersion models. Discussed in post http://thread.gmane.org/gmane.science.nmr.relax.devel/5986. In any function, these default values can get accessed by: from specific_analyses.relax_disp.parameter_object import Relax_disp_params PARAMS = Relax_disp_params() PARAMS.default_value('pA') PARAMS.grid_upper('pA') This provides a good look-up table, when stress testing the different lib/dispersion/* functions. ------------------------------------------------------------------------ r23529 | tlinnet | 2014-05-28 16:49:05 +0200 (Wed, 28 May 2014) | 4 lines Added grid_upper to be handled in specific_analyses/parameter_object.py. This is related to: task #7793: (https://gna.org/task/?7793) Speed-up of dispersion models. Discussed in post http://thread.gmane.org/gmane.science.nmr.relax.devel/5986. ------------------------------------------------------------------------ r23528 | tlinnet | 2014-05-28 16:49:03 +0200 (Wed, 28 May 2014) | 13 lines Added the default value upper grid value to be set for the pA parameter. This is added in the collected table of specific_analysis/relax_disp/parameter_object.py. This is related to: task #7793: (https://gna.org/task/?7793) Speed-up of dispersion models. Discussed in post http://thread.gmane.org/gmane.science.nmr.relax.devel/5986. In any function, these default values can get accessed by: from specific_analyses.relax_disp.parameter_object import Relax_disp_params PARAMS = Relax_disp_params() PARAMS.default_value('pA') PARAMS.grid_upper('pA') ------------------------------------------------------------------------ r23527 | tlinnet | 2014-05-28 16:49:02 +0200 (Wed, 28 May 2014) | 4 lines Added grid_lower to be handled in specific_analyses/parameter_object.py. This is related to: task #7793: (https://gna.org/task/?7793) Speed-up of dispersion models. Discussed in post http://thread.gmane.org/gmane.science.nmr.relax.devel/5986. ------------------------------------------------------------------------ r23526 | tlinnet | 2014-05-28 16:49:00 +0200 (Wed, 28 May 2014) | 13 lines Added the default value lower grid value to be set for the pA parameter. This is added in the collected table of specific_analysis/relax_disp/parameter_object.py This is related to: task #7793: (https://gna.org/task/?7793) Speed-up of dispersion models. Discussed in post http://thread.gmane.org/gmane.science.nmr.relax.devel/5986. In any function, these default values can get accessed by: from specific_analyses.relax_disp.parameter_object import Relax_disp_params PARAMS = Relax_disp_params() PARAMS.default_value('pA') PARAMS.grid_lower('pA') ------------------------------------------------------------------------ ..... Modified: branches/disp_speed/specific_analyses/parameter_object.py branches/disp_speed/specific_analyses/relax_disp/parameter_object.py branches/disp_speed/test_suite/unit_tests/_lib/_dispersion/test_b14.py [This mail would be too long, it was shortened to contain the URLs only.] Modified: branches/disp_speed/specific_analyses/parameter_object.py URL: http://svn.gna.org/viewcvs/relax/branches/disp_speed/specific_analyses/parameter_object.py?rev=23546&r1=23545&r2=23546&view=diff Modified: branches/disp_speed/specific_analyses/relax_disp/parameter_object.py URL: http://svn.gna.org/viewcvs/relax/branches/disp_speed/specific_analyses/relax_disp/parameter_object.py?rev=23546&r1=23545&r2=23546&view=diff Modified: branches/disp_speed/test_suite/unit_tests/_lib/_dispersion/test_b14.py URL: http://svn.gna.org/viewcvs/relax/branches/disp_speed/test_suite/unit_tests/_lib/_dispersion/test_b14.py?rev=23546&r1=23545&r2=23546&view=diff