21 lines
563 B
Python
21 lines
563 B
Python
|
|
"""
|
||
|
|
Database setup for Official Statistics Verification
|
||
|
|
"""
|
||
|
|
|
||
|
|
import sys
|
||
|
|
from pathlib import Path
|
||
|
|
sys.path.append(str(Path(__file__).parent.parent.parent / "core"))
|
||
|
|
|
||
|
|
from database import VIMSDatabase
|
||
|
|
|
||
|
|
|
||
|
|
def setup():
|
||
|
|
"""Initialize database for official-statistics."""
|
||
|
|
db = VIMSDatabase("official-statistics")
|
||
|
|
db.create_schema(anomaly_classes=['aggregation_bias', 'incentive_distortion', 'conceptual_mismatch', 'time_lag', 'underreporting'])
|
||
|
|
print(f"Database initialized for Official Statistics Verification")
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
setup()
|