Hi Edward. The corresponding systemtest is: test_estimate_r2eff_err_auto
Best Troels 2014-08-28 9:42 GMT+02:00 Edward d'Auvergne <edw...@nmr-relax.com>: > I have no idea what is happening with this bug! After turning off the > toggle() method call, the r1_fit argument in the auto-analysis is True > and I see: > > ---------------------------------------- > - R1 parameter optimisation activation - > ---------------------------------------- > > > relax> relax_disp.r1_fit(fit=True) > > > So it is being activated. The error is clearly not in the GUI or > auto-analysis, but somewhere else. Creating a system test to catch > this might help. > > Regards, > > Edward > > > On 27 August 2014 23:45, <tlin...@nmr-relax.com> wrote: >> Author: tlinnet >> Date: Wed Aug 27 23:45:28 2014 >> New Revision: 25362 >> >> URL: http://svn.gna.org/viewcvs/relax?rev=25362&view=rev >> Log: >> Tried to click the "fit_r1" button in the GUI test, but receives an error. >> >> relax --gui-tests Relax_disp.test_r2eff_err_estimate >> >> ---- >> File >> "/Users/tlinnet/software/relax_trunk/specific_analyses/relax_disp/api.py", >> line 463, in get_param_values >> values.append(get_value(spins=spins, sim_index=sim_index, >> param_name=param_name, spin_index=si, r20_key=r20_key)) >> File >> "/Users/tlinnet/software/relax_trunk/specific_analyses/relax_disp/parameters.py", >> line 393, in get_value >> obj = getattr(spins[spin_index], param_name) >> AttributeError: 'SpinContainer' object has no attribute 'r1' >> >> task #7822(https://gna.org/task/index.php?7822): Implement user function to >> estimate R2eff and associated errors for exponential curve fitting. >> >> Modified: >> trunk/test_suite/gui_tests/relax_disp.py >> >> Modified: trunk/test_suite/gui_tests/relax_disp.py >> URL: >> http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/relax_disp.py?rev=25362&r1=25361&r2=25362&view=diff >> ============================================================================== >> --- trunk/test_suite/gui_tests/relax_disp.py (original) >> +++ trunk/test_suite/gui_tests/relax_disp.py Wed Aug 27 23:45:28 2014 >> @@ -576,7 +576,7 @@ >> self._execute_uf(uf_name='deselect.spin', spin_id=":1-100") >> self._execute_uf(uf_name='select.spin', spin_id=":52@N") >> >> - # Deselect all but the 'TP02' model. >> + # Deselect all but the few models. >> models = [MODEL_R2EFF, MODEL_NOREX] >> for i in range(len(analysis.model_field.models_stripped)): >> if analysis.model_field.models_stripped[i] in models: >> @@ -589,6 +589,14 @@ >> analysis.grid_inc.SetValue(0) >> analysis.mc_sim_num.SetValue(3) >> analysis.exp_mc_sim_num.SetValue(-1) >> + >> + # Do fitting of R1. >> + #print dir(analysis.r1_fit) >> + #print analysis.r1_fit.GetValue() >> + analysis.r1_fit.SetValue(bool(True)) >> + #print analysis.r1_fit.GetValue() >> + analysis.r1_fit.toggle() >> + #analysis.r1_fit() >> >> # Execute relax. >> analysis.execute(wx.CommandEvent(wx.wxEVT_COMMAND_BUTTON_CLICKED, >> analysis.button_exec_relax.GetId())) >> >> >> _______________________________________________ >> relax (http://www.nmr-relax.com) >> >> This is the relax-commits mailing list >> relax-comm...@gna.org >> >> 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 > > _______________________________________________ > relax (http://www.nmr-relax.com) > > This is the relax-devel mailing list > relax-devel@gna.org > > 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-devel _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-devel mailing list relax-devel@gna.org 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-devel