-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontrol.py
More file actions
35 lines (28 loc) · 1.18 KB
/
control.py
File metadata and controls
35 lines (28 loc) · 1.18 KB
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
# control.py
"""
AmpyFin — Val Model
Control flags for the pipeline runtime.
Edit these booleans to change behavior (no CLI required).
"""
# --- Required by spec (original names) ---
Run_continous = False # if False: run once; if True: run forever
Gui_mode = False # if True: show PyQt5 GUI (best with Run_continous=False)
Broadcast_mode = False # if True: broadcast JSON over UDP
broadcast_network = "127.0.0.1"
broadcast_port = 5002
# --- Loop timing ---
LOOP_SLEEP_SECONDS = 180 # delay between runs when Run_continous=True
# --- Back-compat/normalized constants used by stages ---
RUN_CONTINUOUS = bool(Run_continous)
GUI_MODE = bool(Gui_mode)
BROADCAST_MODE = bool(Broadcast_mode)
BROADCAST_NETWORK = broadcast_network
BROADCAST_PORT = int(broadcast_port)
# --- JSON dump (optional) ---
Json_dump_enable = True # True = write a JSON file each run
json_dump_dir = "out" # directory for JSON output files (auto-created)
# --- MongoDB storage (optional) ---
MONGODB_ENABLE = False # True = store results in MongoDB (clears existing valuations)
# Normalized mirrors
JSON_DUMP_ENABLE = bool(Json_dump_enable)
JSON_DUMP_DIR = json_dump_dir