Skip to content
Snippets Groups Projects
Commit 40893330 authored by Daniele Nicolodi's avatar Daniele Nicolodi
Browse files

Add terminal setup

parent 5182013f
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ import datetime
import cpa28xx
from ptblab import datalogger, eventloop, rpc, utils
from ptblab import datalogger, eventloop, rpc, utils, terminal
ADDRESS = 'tcp://127.0.0.1:65534'
......@@ -26,6 +26,8 @@ async def status(compressor, datafile):
@click.option('--dataname', default='cryo', metavar='STRING', help='Data name in datalogger mode.')
@utils.config_option(section='cpa28xx')
def main(device, filename, datadir, dataname):
terminal.setup()
compressor = cpa28xx.CPA28xx(device)
server = rpc.Server(ADDRESS, compressor)
datafile = datalogger.open_data_file(datadir, dataname, filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment