Skip to content

Commit 127a43c

Browse files
committed
removed output files from index, updated drr indicators
1 parent 5ea0816 commit 127a43c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+37
-451442
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ __pycache__/
66
.vscode
77
.pytest_cache
88
.venv
9-
*.log
9+
*.log

main.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import sys
33
import time
44
import argparse
5+
import os
56
from pathlib import Path
67
from datetime import datetime
78

@@ -126,13 +127,25 @@ def setup_logging():
126127
h_console.setLevel(logging.INFO)
127128
h_console.setFormatter(f_simple)
128129

130+
# Source - https://stackoverflow.com/a/55248611
131+
# Posted by lotrgollum87, modified by community. See post 'Timeline' for change history
132+
# Retrieved 2026-02-10, License - CC BY-SA 4.0
133+
134+
# Create debug log file
135+
debug_log_filename = "outputs/debug.log"
136+
os.makedirs(os.path.dirname(debug_log_filename), exist_ok=True)
137+
129138
# debug file gets EVERYTHING with the verbose format
130-
h_debug = logging.FileHandler(Path("outputs") / "debug.log", encoding="utf-8", delay=True)
139+
h_debug = logging.FileHandler(debug_log_filename, mode="w", encoding="utf-8", delay=True)
131140
h_debug.setLevel(logging.DEBUG)
132141
h_debug.setFormatter(f_verbose)
133142

143+
# Create error log file
144+
error_log_filename = "outputs/errors.log"
145+
os.makedirs(os.path.dirname(error_log_filename), exist_ok=True)
146+
134147
# errors file gets ERROR and above with verbose format
135-
h_errors = logging.FileHandler(Path("outputs") / "errors.log", encoding="utf-8", delay=True)
148+
h_errors = logging.FileHandler(error_log_filename, mode="w", encoding="utf-8", delay=True)
136149
h_errors.setLevel(logging.ERROR)
137150
h_errors.setFormatter(f_verbose)
138151

outputs/snapshots/2025-03-01/indicators/dp_metrics.csv

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)