Skip to content

Commit f925c03

Browse files
committed
print files which are ignored
1 parent 2cd3360 commit f925c03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mimic-iv/buildmimic/sqlite/import.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,14 @@ def main():
9797
sys.exit()
9898

9999
# subselect to only tables in the above list
100+
ignored_files = set([f for f, t in zip(data_files, tablenames) if t not in _MIMIC_TABLES])
100101
data_files = [f for f, t in zip(data_files, tablenames) if t in _MIMIC_TABLES]
101102
tablenames = [t for t in tablenames if t in _MIMIC_TABLES]
102103
print(f"Importing {len(tablenames)} files.")
103104

105+
if ignored_files:
106+
print(f"Ignoring {len(ignored_files)} files: {ignored_files}")
107+
104108
pt = None
105109
subjects = None
106110
if args.limit > 0:

0 commit comments

Comments
 (0)