mailRe: [task #6847] The Bieri graphical user interface.


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

Header


Content

Posted by Edward d'Auvergne on January 20, 2010 - 09:39:
Hi,

I've applied what I can, but a few patches failed.  Here is a summary.

Successful:
    application_patch
    import_patch (this was mildly problematic, but still applied)
    removed_tab_in_modelfree_patch (the gui_bieri/relax_gui.py changes
were no applied!)
    calc_rx_patch
    calc_noe_patch

Failed:
    statusbar_size_patch (cannot find the revision this applies to)
    mkdir_patch (broken patch)
    relax_log_window_start_patch (cannot find the revision this
applies to, and also contains a change from multi_openfile to openfile
which doesn't belong in this patch)

Fixing and resubmitting the last three shouldn't be too difficult.  If
you could apply them to the current revision ("svn up" to get to
r10264 or higher), report the exact revision they work against, and
reattach them to the task, that would be appreciated.  I've also
tested the code and noticed an import error:

[edward@localhost bieri_gui]$ ./relax -g
Traceback (most recent call last):
  File "./relax", line 54, in <module>
    import gui_bieri
  File "/data/relax/branches/bieri_gui/gui_bieri/__init__.py", line
39, in <module>
    from relax_gui import about_relax, main
  File "/data/relax/branches/bieri_gui/gui_bieri/relax_gui.py", line
47, in <module>
    from res.relax_control import start_rx, start_noe
ImportError: No module named relax_control

Is there a new module called relax_control.py?  Is it new, or was it
copied from somewhere?

Cheers,

Edward


2010/1/19 Michael Bieri <NO-REPLY.INVALID-ADDRESS@xxxxxxx>:

Follow-up Comment #20, task #6847 (project relax):

Hi Edward

I collected all the missing patches:

relax_log_window_start_patch:

Opening the relaxGUI Log Window after pushing start-relax button

added:
+from res.project import create_save_file, open_file
+from res.relax_control import start_rx, start_noe

changed:
make_noe() to start_noe()
make_rx() to start_rx()

_________________________________


calc_noe_patch:

Created feedback to relaxGUI Log Window during NOE calculation

added:

class RedirectText --> redirect the relax output to relaxGUI Log Window

# Number of Monte Carlo simulations
global montecarlo
montecarlo = int(global_setting[6])

--> set monte carlo value for updating progress bar in log window


# value for progress bar during monte carlo simulation
global progress
progress = 5.0

--> initial progress value before monte carlo simulation



# redirect relax output and errors to relaxGUI - log panel
redir=RedirectText(self)
sys.stdout=redir
sys.stderr=redir

redirecting system output and error to new created class that updates log
window

_________________________________


calc_rx_patch:

Created feedback to relaxGUI Log Window during Rx calculation

added:

class RedirectText --> redirect the relax output to relaxGUI Log Window

# Number of Monte Carlo simulations
global montecarlo
montecarlo = int(global_setting[6])

--> set monte carlo value for updating progress bar in log window


# value for progress bar during monte carlo simulation
global progress
progress = 5.0

--> initial progress value before monte carlo simulation



# redirect relax output and errors to relaxGUI - log panel
redir=RedirectText(self)
sys.stdout=redir
sys.stderr=redir

redirecting system output and error to new created class that updates log
window

-------------------------------------------------

removed_tab_in_modelfree_patch:

replaced tabulators to 4 space characters in calc_model_free.py


----------------------------------------------------

mkdir_patch:

replaced os.sytem('mkdir ' + ....) to os.mkdir()


--------------------------------------------------


statusbar_size_patch:

increased the size of the 3. cell of the status bar. Now 'repository
checkout' is fully displaid


-------------------------------------------------

import_patch:

replaced form xxxx import * with from xxx import yyy, aaa....  in
relax_gui.py


------------------------ ------------------------

application_patch:

about relaxGUI panel does not create own wx application

removed:

about.py:
-    app = wx.PySimpleApp(0)
-    wx.InitAllImageHandlers()
-    start = MyFrame(None, -1, "")
-    app.SetTopWindow(start)
-    start.Show()
-    app.MainLoop()


changed:
xw.Frame to wx.Dialog in about.py

moved:
in __init__.py (main folder)

+    # start wx Application
+    relaxGUI = wx.PySimpleApp(0)
+    wx.InitAllImageHandlers()

 -->  to start one wx application for about panel and main relaxGUI window

-----------------------------------


The patches are in the compressed file below.

Cheers
Michael



(file #7726)
   _______________________________________________________

Additional Item Attachment:

File name: 100120_patches.zip             Size:20 KB


   _______________________________________________________

Reply to this item at:

 <http://gna.org/task/?6847>

_______________________________________________
 Nachricht geschickt von/durch Gna!
 http://gna.org/


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-devel mailing list
relax-devel@xxxxxxx

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




Related Messages


Powered by MHonArc, Updated Wed Jan 20 11:40:13 2010