Skip to content

Commit

Permalink
print files which are ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairewj committed Aug 25, 2024
1 parent 2cd3360 commit f925c03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mimic-iv/buildmimic/sqlite/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,14 @@ def main():
sys.exit()

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

if ignored_files:
print(f"Ignoring {len(ignored_files)} files: {ignored_files}")

pt = None
subjects = None
if args.limit > 0:
Expand Down

0 comments on commit f925c03

Please sign in to comment.