-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
077b617
commit 4da6290
Showing
2 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#!/usr/bin/env bash | ||
# Updates the moh_template based on the schema. | ||
# Manual differences are recorded in tests/moh_diffs.txt | ||
|
||
|
||
python src/clinical_etl/generate_schema.py --out tmp_template | ||
diff tmp_template.csv moh_v3_template.csv > tests/moh_diffs.txt | ||
rm tmp_template.csv | ||
bytes=$(head -5 tests/moh_diffs.txt | wc -c) | ||
dd if=tests/moh_diffs.txt bs="$bytes" skip=1 conv=notrunc of=tests/moh_diffs1.txt | ||
python src/clinical_etl/generate_schema.py --out moh_template | ||
diff moh_template.csv moh_v3_template.csv > curr_diff.txt | ||
bytes=$(head -5 curr_diff.txt | wc -c) | ||
dd if=curr_diff.txt bs="$bytes" skip=1 conv=notrunc of=tests/moh_diffs1.txt | ||
mv tests/moh_diffs1.txt tests/moh_diffs.txt | ||
rm curr_diff.txt |