-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.py
More file actions
41 lines (34 loc) · 747 Bytes
/
Config.py
File metadata and controls
41 lines (34 loc) · 747 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
# DataFile.py
# by Robin Prillwitz
# 11.2.2020
#
import sys
from pathlib import Path
SEPERATOR = ";"
DECIMAL = ","
# Highest possible Z-Index
Z_IDX_TOP = 201
# Colors in HSV for Graphs
COLORS = [
[151, 90, 90],
[185, 95, 90],
[52, 95, 90],
[25, 95, 90],
[325, 95, 90],
[355, 75, 91],
]
# size of one division [x units]
DIVISION = 1
# Points Per Division
# amount of points to interpolate to for each division
PPD = 100
# rounding values after comma
PRECISION = 8
# max ammount of sampling points for datafiles only
MAX = 2000
def getResource(path):
if getattr(sys, 'frozen', False):
root = Path(sys._MEIPASS) # sys has attribute if it's frozen
else:
root = Path()
return str(root / path)