Skip to content

Commit f639ef9

Browse files
committed
updating files
1 parent 8b2ca0e commit f639ef9

2 files changed

Lines changed: 24 additions & 8 deletions

File tree

  • scripts/us_nces/demographics/private_school

scripts/us_nces/demographics/private_school/private_school_stats/manifest.json renamed to scripts/us_nces/demographics/private_school/private_school_stats/NCES_PrivateSchoolStats/manifest.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,23 @@
88
"provenance_url": "https://nces.ed.gov/ccd/elsi/tableGenerator.aspx",
99
"provenance_description": "US nces school data for private",
1010
"scripts": [
11-
"../run.sh",
12-
"../process.py --stats"
11+
"../../run.sh"
1312
],
1413
"source_files": [
15-
"../gcs_folder/input_files/*/*.csv"
14+
"../../gcs_folder/input_files/*/*.csv"
1615
],
1716
"import_inputs": [
1817
{
19-
"template_mcf": "../gcs_folder/output_files/us_nces_demographics_private_school.tmcf",
20-
"cleaned_csv": "../gcs_folder/output_files/us_nces_demographics_private_school.csv"
18+
"template_mcf": "../../gcs_folder/output_files/us_nces_demographics_private_school.tmcf",
19+
"cleaned_csv": "../../gcs_folder/output_files/us_nces_demographics_private_school.csv"
2120
}
2221
],
23-
"cron_schedule": "30 3 1 3,6,9,12 *"
22+
"cron_schedule": "30 3 1 3,6,9,12 *",
23+
"resource_limits": {
24+
"cpu": 32,
25+
"memory": 512,
26+
"disk": 300
27+
}
2428
}
2529
]
2630
}
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1-
mkdir -p gcs_folder/input_files
2-
gcloud storage cp --recursive gs://unresolved_mcf/us_nces/demographics/private_school/semi_automation_input_files/* gcs_folder/input_files/
1+
#!/bin/bash
2+
3+
# 1. Get the absolute path to the 'private_school' directory
4+
BASE_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
5+
6+
# 3. Create the actual data storage folder in the base directory
7+
mkdir -p "$BASE_DIR/gcs_folder/input_files"
8+
9+
# 4. Download files
10+
gcloud storage cp --recursive "gs://unresolved_mcf/us_nces/demographics/private_school/semi_automation_input_files/*" "$BASE_DIR/gcs_folder/input_files/"
11+
12+
# 5. Run the process
13+
cd "$BASE_DIR"
14+
python process.py --stats

0 commit comments

Comments
 (0)