-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
57 lines (40 loc) · 1.06 KB
/
constants.py
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
"""
constants.py
Author: Ian Smith
Module to hold needed constants for this program
"""
# Important Directories
DEST = 'destination'
BATCHES = 'batches'
DEL = 'del'
FAILED = 'failed'
DONE = 'processed'
REC = 'rec'
TMP = 'tmp'
STATE = 'state'
DIRS = [BATCHES, DEL, DEST, FAILED, DONE, REC, TMP, STATE]
JOB_DIRS = [BATCHES, DEST, DONE, FAILED]
PAUSED = True
# Time before a file gets deleted in days
TIME_TO_DELETE = 7
# Important Values from COM file
DATE = "DATE"
F_NAME = "FILE_FNAME"
TARGET_IMAGE = "TARGET_FILE"
EXT = "FEXT"
EVAL_FEXT = "EVAL_FEXT"
JOB_TYPE = "JOB_TYPE"
# Socket details for communicating from CLI to daemon
ip_addr = "127.0.0.1"
port = 4003
ADDR = (ip_addr, port)
# Log Locations
DEBUG = "logs/debug.log"
ERROR = "logs/error.log"
# Checkpoint Files
QUEUE_CHECKPOINT = '/state/queue.txt'
PROCESS_CHECKPOINT = '/state/process.txt'
# Model setup parameters
RAD_TIB_PATH_TO_ENV = r"/home/iangs/miniconda3/envs/bl_torch/bin/python"
RAD_TIB_PATH_TO_START = r"/home/iangs/repos/HR-pQCT-Segmentation/segment.py"
RAD_TIB_TRAINED_MODELS = "radius_tibia_final"