"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gui/components/relax_data.py" between
relax-4.1.3.src.tar.bz2 and relax-5.0.0.src.tar.bz2

About: relax allows the study of molecular dynamics through the analysis of experimental NMR data. Organic molecules, proteins, RNA, DNA, sugars, and other biomolecules are all supported.

relax_data.py  (relax-4.1.3.src.tar.bz2):relax_data.py  (relax-5.0.0.src.tar.bz2)
############################################################################### ###############################################################################
# # # #
# Copyright (C) 2009-2010 Michael Bieri # # Copyright (C) 2009-2010 Michael Bieri #
# Copyright (C) 2009-2014 Edward d'Auvergne # # Copyright (C) 2009-2014,2019 Edward d'Auvergne #
# # # #
# This file is part of the program relax (http://www.nmr-relax.com). # # This file is part of the program relax (http://www.nmr-relax.com). #
# # # #
# This program is free software: you can redistribute it and/or modify # # This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by # # it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or # # the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. # # (at your option) any later version. #
# # # #
# This program is distributed in the hope that it will be useful, # # This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of # # but WITHOUT ANY WARRANTY; without even the implied warranty of #
skipping to change at line 31 skipping to change at line 31
############################################################################### ###############################################################################
# Module docstring. # Module docstring.
"""Module containing the classes for GUI components involving relaxation data."" " """Module containing the classes for GUI components involving relaxation data."" "
# Python module imports. # Python module imports.
import wx import wx
import wx.lib.buttons import wx.lib.buttons
# relax module imports. # relax module imports.
import dep_check
from graphics import fetch_icon from graphics import fetch_icon
from gui.components.base_list import Base_list from gui.components.base_list import Base_list
from gui.components.relax_data_meta import Relax_data_meta_list from gui.components.relax_data_meta import Relax_data_meta_list
from gui.icons import Relax_icons from gui.icons import Relax_icons
from gui.misc import add_border from gui.misc import add_border
from gui.string_conv import float_to_gui, gui_to_str, str_to_gui from gui.string_conv import float_to_gui, gui_to_str, str_to_gui
from gui.uf_objects import Uf_storage; uf_store = Uf_storage() from gui.uf_objects import Uf_storage; uf_store = Uf_storage()
from gui.wizards.wiz_objects import Wiz_window from gui.wizards.wiz_objects import Wiz_window
from lib.text.gui import r1, r2 from lib.text.gui import r1, r2
from status import Status; status = Status() from status import Status; status = Status()
skipping to change at line 318 skipping to change at line 319
# Expand the number of rows to match the number of relaxation IDs, and a dd the IDs. # Expand the number of rows to match the number of relaxation IDs, and a dd the IDs.
n = 0 n = 0
if hasattr(cdp, 'ri_ids'): if hasattr(cdp, 'ri_ids'):
# The number of IDs. # The number of IDs.
n = len(cdp.ri_ids) n = len(cdp.ri_ids)
# Add all the data. # Add all the data.
for i in range(n): for i in range(n):
# Set the IDs. # Set the IDs.
id = cdp.ri_ids[i] id = cdp.ri_ids[i]
self.element.InsertStringItem(i, str_to_gui(id)) if dep_check.wx_classic:
self.element.InsertStringItem(i, str_to_gui(id))
else:
self.element.InsertItem(i, str_to_gui(id))
# Set the data types. # Set the data types.
self.element.SetStringItem(i, 1, str_to_gui(table[cdp.ri_type[id if dep_check.wx_classic:
]])) self.element.SetStringItem(i, 1, str_to_gui(table[cdp.ri_typ
e[id]]))
else:
self.element.SetItem(i, 1, str_to_gui(table[cdp.ri_type[id]]
))
# Set the frequencies. # Set the frequencies.
self.element.SetStringItem(i, 2, float_to_gui(cdp.spectrometer_f if dep_check.wx_classic:
rq[id])) self.element.SetStringItem(i, 2, float_to_gui(cdp.spectromet
er_frq[id]))
else:
self.element.SetItem(i, 2, float_to_gui(cdp.spectrometer_frq
[id]))
def view_metadata(self, event=None): def view_metadata(self, event=None):
"""Launch the metadata window. """Launch the metadata window.
@keyword event: The wx event. @keyword event: The wx event.
@type event: wx event @type event: wx event
""" """
# Launch. # Launch.
Metadata_window(self.gui) Metadata_window(self.gui)
 End of changes. 5 change blocks. 
6 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)