Hi Troels,

You should check this in the GUI.  You'll see the wizard window is far
too big.  So you could maybe delete uf.wizard_size and see if you like
the size.  Otherwise look at some other user function windows for size
inspiration.  Also, the uf.wizard_height_desc value is for user
functions with very large descriptions.  You don't need that here.

Cheers,

Edward


On 6 December 2014 at 14:45,  <tlin...@nmr-relax.com> wrote:
> Author: tlinnet
> Date: Sat Dec  6 14:45:14 2014
> New Revision: 26974
>
> URL: http://svn.gna.org/viewcvs/relax?rev=26974&view=rev
> Log:
> Added user function spectrum.sn_ratio to calculate the signal to noise ration 
> for all spins.
>
> Modified:
>     trunk/user_functions/spectrum.py
>
> Modified: trunk/user_functions/spectrum.py
> URL: 
> http://svn.gna.org/viewcvs/relax/trunk/user_functions/spectrum.py?rev=26974&r1=26973&r2=26974&view=diff
> ==============================================================================
> --- trunk/user_functions/spectrum.py    (original)
> +++ trunk/user_functions/spectrum.py    Sat Dec  6 14:45:14 2014
> @@ -538,3 +538,23 @@
>  uf.gui_icon = "oxygen.actions.edit-rename"
>  uf.wizard_size = (700, 500)
>  uf.wizard_image = WIZARD_IMAGE_PATH + 'spectrum' + sep + 'spectrum_200.png'
> +
> +
> +# The spectrum.sn_ratio user function.
> +uf = uf_info.add_uf('spectrum.sn_ratio')
> +uf.title = "Calculate the signal to noise ratio for all selected spins."
> +uf.title_short = "Signal to noise calculation."
> +# Description.
> +uf.desc.append(Desc_container())
> +uf.desc[-1].add_paragraph("This user function will per spin calculate the 
> signal to noise ratio: S/N.")
> +# Prompt examples.
> +uf.desc.append(Desc_container("Prompt examples"))
> +uf.desc[-1].add_paragraph("To calculate the Signal to Noise ratio per spin.")
> +uf.desc[-1].add_prompt("relax> spectrum.sn_ratio()")
> +uf.backend = spectrum.signal_noise_ratio
> +uf.menu_text = "&sn_ratio"
> +uf.gui_icon = "relax.fid"
> +uf.wizard_height_desc = 530
> +uf.wizard_size = (1000, 700)
> +uf.wizard_image = WIZARD_IMAGE_PATH + 'spectrum' + sep + 'spectrum_200.png'
> +uf.wizard_apply_button = False
>
>
> _______________________________________________
> 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

Reply via email to