-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_server.py
More file actions
42 lines (29 loc) · 755 Bytes
/
run_server.py
File metadata and controls
42 lines (29 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python3
"""
run_mv_server.py is a module for use on a computer running MultiVu. It can
be used with MultiPyVu.Client to control a Quantum Design cryostat.
"""
import sys
import MultiPyVu as mpv
def server(flags: str = ''):
'''
This method deciphers the command line text, and the instantiates the
MultiVuServer.
Parameters
----------
flags : str
For a list of flags, use the help flag, '--help'.
The default is ''.
Returns
-------
None.
'''
user_flags = []
if flags == '':
user_flags = sys.argv[1:]
else:
user_flags = flags.split(' ')
s = mpv.Server(user_flags, keep_server_open=True)
s.open()
if __name__ == '__main__':
server()