Esempio n. 1
0
def module_setup_teardown():
    global app, spy, mwGlob, test
    app, spy, mwGlob, test = setupQt()
    file = mwGlob['imageDir'] + '/test.fit'
    if os.path.isfile(file):
        os.remove(file)
    yield
Esempio n. 2
0
def module_setup_teardown():
    global app, spy, mwGlob, test
    app, spy, mwGlob, test = setupQt()
    app.mainW.lastGenerator = 'test'
    yield
    files = glob.glob(mwGlob['modelDir'] + '/m-*.model')
    for f in files:
        os.remove(f)
    for path in glob.glob(mwGlob['imageDir'] + '/m-*'):
        shutil.rmtree(path)
Esempio n. 3
0
def module_setup_teardown():
    global app, spy, mwGlob, test
    app, spy, mwGlob, test = setupQt()

    value = np.datetime64('2014-12-12 20:20:20')
    app.measure.devices['sensorWeather'] = ''
    app.measure.devices['power'] = ''
    app.measure.devices['skymeter'] = ''
    app.measure.data = {
        'time': np.empty(shape=[0, 1], dtype='datetime64'),
        'sensorWeatherTemp': np.full([5, 1], 1.0),
        'sensorWeatherHum': np.full([5, 1], 1.0),
        'sensorWeatherPress': np.full([5, 1], 1.0),
        'sensorWeatherDew': np.full([5, 1], 1.0),
        'skySQR': np.full([5, 1], 1.0),
        'skyTemp': np.full([5, 1], 1.0),
        'raJNow': np.full([5, 1], 1.0),
        'decJNow': np.full([5, 1], 1.0),
        'status': np.full([5, 1], 1.0),
        'powCurr1': np.full([5, 1], 1.0),
        'powCurr2': np.full([5, 1], 1.0),
        'powCurr3': np.full([5, 1], 1.0),
        'powCurr4': np.full([5, 1], 1.0),
        'powVolt': np.full([5, 1], 1.0),
        'powCurr': np.full([5, 1], 1.0),
        'powHum': np.full([5, 1], 1.0),
        'powTemp': np.full([5, 1], 1.0),
        'powDew': np.full([5, 1], 1.0),
    }
    app.measure.data['time'] = np.append(app.measure.data['time'], value)
    app.measure.data['time'] = np.append(app.measure.data['time'], value)
    app.measure.data['time'] = np.append(app.measure.data['time'], value)
    app.measure.data['time'] = np.append(app.measure.data['time'], value)
    app.measure.data['time'] = np.append(app.measure.data['time'], value)

    app.config['showMeasureW'] = True
    app.toggleWindow(windowTag='showMeasureW')
    yield
Esempio n. 4
0
def module_setup_teardown():
    global app, spy, mwGlob, test
    app, spy, mwGlob, test = setupQt()
    app.mainW.deviceStat['mount'] = True
    yield
def module_setup_teardown():
    global app, spy, mwGlob, test
    app, spy, mwGlob, test = setupQt()
    yield
Esempio n. 6
0
def module_setup_teardown():
    global app, spy, mwGlob, test
    app, spy, mwGlob, test = setupQt()
    app.config['showHemisphereW'] = True
    app.toggleWindow(windowTag='showHemisphereW')
    yield