mail[bug #21142] The GUI of relax_disp.spin_lock_field cannot not accept "None" as input.


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Troels E. Linnet on September 16, 2013 - 21:31:
URL:
  <http://gna.org/bugs/?21142>

                 Summary: The GUI of relax_disp.spin_lock_field cannot not
accept "None" as input.
                 Project: relax
            Submitted by: tlinnet
            Submitted on: Mon 16 Sep 2013 07:31:57 PM GMT
                Category: relax's source code
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Branches
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

I was trying to redo the sample script in:
relaxrelax_disptest_suitesystem_testsscriptsrelax_dispr1rho_on_res_dpl94.py

I found that one cannot input "None" in the GUI.


relax> relax_disp.spin_lock_field(spectrum_id='ref', field=u'None')
Traceback (most recent call last):
  File "C:WinPython27relaxrelax_dispguiwizardswiz_objects.py", line 661, in
_go_next
    self._pages[self._current_page]._apply(event)
  File "C:WinPython27relaxrelax_dispguiwizardswiz_objects.py", line 161, in
_apply
    self.exec_status = self.on_execute()
  File "C:WinPython27relaxrelax_dispguiuf_objects.py", line 883, in
on_execute
    return_status = self.execute(self.name, **kargs)
  File "C:WinPython27relaxrelax_dispguiuf_objects.py", line 805, in execute
    return_status = interpreter.apply(uf, *args, **kwds)
  File "C:WinPython27relaxrelax_dispguiinterpreter.py", line 109, in apply
    apply(fn, args, kwds)
  File "C:WinPython27relaxrelax_dispspecific_analysesrelax_dispdisp_data.py",
line 1649, in spin_lock_field
    cdp.spin_lock_nu1[spectrum_id] = float(field)
ValueError: could not convert string to float: None




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21142>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/




Related Messages


Powered by MHonArc, Updated Mon Sep 16 21:40:07 2013