Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"NumPlaces","ScalingFactors","Units","MeasurementMethods","StatVar","MinDate","observationPeriods"
"1","[]","[IndexPointBasePeriodDecember1999Equals100]","[BLSChained]","dc/x6l3mg60hpe7c","1999-12","[]"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"MinDate","NumPlaces","Units","ScalingFactors","MeasurementMethods","StatVar","observationPeriods"
Comment thread
balit-raibot marked this conversation as resolved.
"1947-01","1","[IndexPointBasePeriod1982To1984Equals100]","[]","[BLSUnchained]","dc/x6l3mg60hpe7c","[]"
3 changes: 2 additions & 1 deletion scripts/us_bls/cpi/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"source_files": [
"input_files/*"
],
"cron_schedule": "0 3 2,16 * *"
"cron_schedule": "0 3 2,16 * *",
"validation_config_file": "validation_config.json"
}
]
}
29 changes: 29 additions & 0 deletions scripts/us_bls/cpi/validation_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"schema_version": "1.0",
"rules": [
{
"rule_id": "check_deleted_records_percent",
"description": "Checks that the percentage of deleted records for the entire import is within threshold.",
"validator": "DELETED_RECORDS_PERCENT",
"params": { "threshold": 0.1}
},
{
"rule_id": "check_goldens_cpi_u",
"description": "Validates cpi_u data against its golden summary report.",
"validator": "GOLDENS_CHECK",
"params": {
"golden_files": "../../../../golden_data/golden_summary_report_cpi_u.csv",
Comment thread
niveditasing marked this conversation as resolved.
"input_files": "../../input0/genmcf/summary_report.csv"
}
},
{
"rule_id": "check_goldens_c_cpi_u",
"description": "Validates c_cpi_u data against its golden summary report.",
"validator": "GOLDENS_CHECK",
"params": {
"golden_files": "../../../../golden_data/golden_summary_report_c_cpi_u.csv",
Comment thread
niveditasing marked this conversation as resolved.
"input_files": "../../input2/genmcf/summary_report.csv"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"MinDate","MeasurementMethods","NumPlaces","observationPeriods","ScalingFactors","StatVar","Units"
"2020-01","[BLSSeasonallyUnadjusted, BLSSeasonallyAdjusted]","104","[P1M]","[]","Count_Person_Employed_TotalNonfarm","[]"
3 changes: 2 additions & 1 deletion statvar_imports/us_bls/bls_ces_state/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"source_files": [
"input_files/raw_data/*"
],
"cron_schedule": "0 06 * * 3"
"cron_schedule": "0 06 * * 3",
"validation_config_file": "validation_config.json"
}
]
}
18 changes: 18 additions & 0 deletions statvar_imports/us_bls/bls_ces_state/validation_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"schema_version": "1.0",
"rules": [
{
"rule_id": "check_deleted_records_percent",
"description": "Checks that the percentage of deleted records for the entire import is within threshold.",
"validator": "DELETED_RECORDS_PERCENT",
"params": { "threshold": 0.1}
},
{
"rule_id": "check_goldens_summary_report",
"validator": "GOLDENS_CHECK",
"params": {
"golden_files": "../../../../golden_data/golden_summary_report.csv"
Comment thread
niveditasing marked this conversation as resolved.
}
}
]
}
Loading