-
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) · 1.12 KB
/
config.py
File metadata and controls
41 lines (34 loc) · 1.12 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
36
37
38
39
40
41
"""Global configuration for the UIDAI Hackathon chart generation system."""
from pathlib import Path
# Base paths
PROJECT_ROOT = Path(__file__).parent
DATASETS_DIR = PROJECT_ROOT / "Datasets"
CHARTS_OUTPUT_DIR = PROJECT_ROOT / "charts"
CHARTS_SVG_OUTPUT_DIR = PROJECT_ROOT / "charts-svg"
# Dataset directories
DEMOGRAPHIC_DIR = DATASETS_DIR / "demographic"
BIOMETRIC_DIR = DATASETS_DIR / "biometric"
ENROLLMENT_DIR = DATASETS_DIR / "enrollment"
# Chart styling
COLORS = {
"demographic": "#1f77b4", # Blue
"biometric": "#ff7f0e", # Orange
"enrollment": "#2ca02c", # Green
"primary": "#9467bd", # Purple (for general charts)
}
FIGURE_DPI = 150
DEFAULT_FIGSIZE = (12, 8)
# Date format in CSVs (DD-MM-YYYY)
DATE_FORMAT = "%d-%m-%Y"
# SVG Export Configuration
SVG_OPTIMIZE = True
SVG_OPTIMIZATION_OPTIONS = {
"remove_descriptive_elements": False,
"strip_xml_prolog": False,
"enable_viewboxing": True,
"shorten_ids": True,
}
# Metadata/Credit
CHART_AUTHOR = "github.com/BMOit"
CHART_SOFTWARE = "UIDAI Data Hackathon 2026"
CHART_COPYRIGHT = "github.com/BMOit"