Пример #1
0
    def __init__(self, parent, title, num=10000):
        """Set up a minimal relax GUI."""

        # Store the args.
        self.num = num

        # Initialise the frame.
        wx.Frame.__init__(self, parent, title=title, size=(200, 100))

        # Set up a pseudo-relax GUI.
        app = wx.GetApp()
        app.gui = self

        # Set up some standard interface-wide fonts.
        font.setup()

        # Initialise the special interpreter thread object.
        self.interpreter = Interpreter()

        # Build the controller, but don't show it.
        self.controller = Dummy_controller()

        # Open the muppy results file.
        self.file = open('muppy_log', 'w')

        # Run the test.
        self.test()
        print("Finished!")

        # Show the frame.
        self.Show(True)
Пример #2
0
#                                                                             #
# You should have received a copy of the GNU General Public License           #
# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
#                                                                             #
###############################################################################

# Python module imports.
from os import F_OK, access, sep
import wx

# relax module imports.
from data_store import Relax_data_store
ds = Relax_data_store()
import dep_check
from gui.interpreter import Interpreter
interpreter = Interpreter()
from gui.string_conv import float_to_gui, float_to_gui, str_to_gui
from gui.uf_objects import Uf_storage
uf_store = Uf_storage()
from pipe_control.mol_res_spin import spin_loop
from pipe_control.pipes import cdp_name
from status import Status
status = Status()
from test_suite.gui_tests.base_classes import GuiTestCase


class Rx(GuiTestCase):
    """Class for testing various aspects specific to the R1 and R2 analyses."""
    def __init__(self, methodName='runTest'):
        """Skip the tests if the C modules are non-functional or for wxPython bugs.
Пример #3
0
# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
# GNU General Public License for more details.                                #
#                                                                             #
# You should have received a copy of the GNU General Public License           #
# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
#                                                                             #
###############################################################################

# Python module imports.
from os import F_OK, access, sep
import wx

# relax module imports.
from data_store import Relax_data_store; ds = Relax_data_store()
from gui.interpreter import Interpreter; interpreter = Interpreter()
from gui.string_conv import str_to_gui
from pipe_control.mol_res_spin import spin_loop
from pipe_control.pipes import cdp_name
from status import Status; status = Status()
from test_suite.gui_tests.base_classes import GuiTestCase


class Noe(GuiTestCase):
    """Class for testing various aspects specific to the NOE analysis."""

    def __init__(self, methodName=None):
        """Set up the test case class for the system tests."""

        # Execute the base __init__ methods.
        super(Noe, self).__init__(methodName)