| Trees | Indices | Help |
|
|---|
|
|
1 ###############################################################################
2 # #
3 # Copyright (C) 2011-2014 Edward d'Auvergne #
4 # #
5 # This file is part of the program relax (http://www.nmr-relax.com). #
6 # #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
11 # #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
16 # #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 # #
20 ###############################################################################
21
22 # Module docstring.
23 """The sys_info user function definitions."""
24
25 # relax module imports.
26 from info import print_sys_info
27 from lib.timing import print_time
28 from user_functions.data import Uf_info; uf_info = Uf_info()
29 from user_functions.objects import Desc_container
30
31
32 # The sys_info user function.
33 uf = uf_info.add_uf('sys_info')
34 uf.title = "Display all system information relating to this version of relax."
35 uf.title_short = "Display system information."
36 uf.display = True
37 # Description.
38 uf.desc.append(Desc_container())
39 uf.desc[-1].add_paragraph("This will display all of the relax, Python, python package and hardware information currently being used by relax. This is useful for seeing if all packages are up to date and if the correct software versions are being used. It is also very useful information for reporting relax bugs.")
40 uf.backend = print_sys_info
41 uf.menu_text = "s&ys_info"
42 uf.gui_icon = "oxygen.actions.help-about"
43 uf.wizard_size = (700, 400)
44 uf.wizard_apply_button = False
45
46
47 # The time user function.
48 uf = uf_info.add_uf('time')
49 uf.title = "Display the current time."
50 uf.title_short = "Current time."
51 uf.display = True
52 # Description.
53 uf.desc.append(Desc_container())
54 uf.desc[-1].add_paragraph("This user function will display the current time which can be useful for timing long calculations by having time information in any saved log files.")
55 uf.backend = print_time
56 uf.menu_text = "&time"
57 uf.gui_icon = "oxygen.actions.chronometer"
58 uf.wizard_size = (700, 400)
59 uf.wizard_apply_button = False
60
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Sep 30 14:41:44 2015 | http://epydoc.sourceforge.net |