fix: env & paths

This commit is contained in:
DBras 2024-06-10 11:01:28 +02:00
parent 1d8fbd49d1
commit a200ff729a
2 changed files with 4 additions and 2 deletions

1
demo_datalogger.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!./venv/bin/python3
import syslab import syslab
from json import dump from json import dump
from time import sleep, time from time import sleep, time

5
demo_plotter.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!./venv/bin/python3
import pandas as pd import pandas as pd
import json import json
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
@ -5,7 +6,7 @@ import os
from datetime import timedelta from datetime import timedelta
## Read the measurements data file ## ## Read the measurements data file ##
DATA_MEAS_DIR = 'data\measurements' DATA_MEAS_DIR = 'data/measurements'
# Always plot latest datafile - replace [-1] with another index if you want to plot a specific file. # Always plot latest datafile - replace [-1] with another index if you want to plot a specific file.
MEAS_LOG_FILE = sorted(os.listdir(DATA_MEAS_DIR))[-1] MEAS_LOG_FILE = sorted(os.listdir(DATA_MEAS_DIR))[-1]
@ -19,7 +20,7 @@ use_setpoint_log = False
## Read the setpoints data file ## ## Read the setpoints data file ##
if use_setpoint_log: if use_setpoint_log:
DATA_SP_DIR = 'data\setpoints' DATA_SP_DIR = 'data/setpoints'
# Always plot latest datafile # Always plot latest datafile
SP_LOG_FILE = sorted(os.listdir(DATA_SP_DIR))[-1] SP_LOG_FILE = sorted(os.listdir(DATA_SP_DIR))[-1]