From 948e687fcd3b23c26bc02ee6156c8446871403d1 Mon Sep 17 00:00:00 2001 From: ani Date: Sun, 19 Jul 2026 14:47:55 +0000 Subject: [PATCH] fix(mimic-iv-ed): correct postgres quickstart paths wget drops files under physionet.org/files/mimic-iv-ed, but the quickstart mv used mimiciv-iv-ed. Also load load_gz.sql via its repo-relative path and fix "into this data" -> "into this database". --- mimic-iv-ed/buildmimic/postgres/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mimic-iv-ed/buildmimic/postgres/README.md b/mimic-iv-ed/buildmimic/postgres/README.md index 297f72fe5..621dbbefe 100644 --- a/mimic-iv-ed/buildmimic/postgres/README.md +++ b/mimic-iv-ed/buildmimic/postgres/README.md @@ -11,11 +11,11 @@ git clone https://github.com/MIT-LCP/mimic-code.git cd mimic-code # download data wget -r -N -c -np --user --ask-password https://physionet.org/files/mimic-iv-ed/2.2/ -mv physionet.org/files/mimiciv-iv-ed mimiciv && rmdir physionet.org/files && rm physionet.org/robots.txt && rmdir physionet.org +mv physionet.org/files/mimic-iv-ed mimiciv && rmdir physionet.org/files && rm physionet.org/robots.txt && rmdir physionet.org # if mimiciv not exists # createdb mimiciv psql -d mimiciv -f mimic-iv-ed/buildmimic/postgres/create.sql -psql -d mimiciv -v ON_ERROR_STOP=1 -v mimic_data_dir=mimiciv/2.2/ed -f load_gz.sql +psql -d mimiciv -v ON_ERROR_STOP=1 -v mimic_data_dir=mimiciv/2.2/ed -f mimic-iv-ed/buildmimic/postgres/load_gz.sql ``` @@ -35,7 +35,7 @@ After the database exists, the schema and tables can be created under this datab psql -d mimic -f create.sql ``` -Finally, loading the data into this data requires specifying the database name with `-d mimic` again: +Finally, loading the data into this database requires specifying the database name with `-d mimic` again: ```sh psql -d mimic -v ON_ERROR_STOP=1 -v mimic_data_dir= -f load.sql