1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 """The sys_info user function definitions."""
24
25
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
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
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
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
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