forked from openUC2/ImSwitch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
14 lines (14 loc) · 811 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if __name__ == '__main__':
from imswitch.__main__ import main
'''
To start imswitch in headless with a remote config file, you can add additional arguments:
main(is_headless=True, default_config="/Users/bene/ImSwitchConfig/imcontrol_setups/example_virtual_microscope.json", http_port=8001, ssl=True, data_folder="/Users/bene/Downloads")
- is_headless: True or False
- default_config: path to the config file
- http_port: port number
- ssl: True or False
- data_folder: path to the data folder
example:
main(is_headless=True, data_folder="/Users/bene/Downloads")
'''
main(is_headless=True) #default_config="/Users/bene/ImSwitchConfig/imcontrol_setups/example_virtual_microscope.json", is_headless=True, http_port=8002) ## this has to be maintained for DOCKER!