anicolson commited on
Commit
7dae7aa
1 Parent(s): 072b71f

Upload model

Browse files
Files changed (2) hide show
  1. create_section_files.py +1 -4
  2. prepare_dataset.py +0 -4
create_section_files.py CHANGED
@@ -4,10 +4,7 @@ from pathlib import Path
4
 
5
  from tqdm import tqdm
6
 
7
- try:
8
- from .section_parser import custom_mimic_cxr_rules, section_text
9
- except ImportError:
10
- from section_parser import custom_mimic_cxr_rules, section_text
11
 
12
 
13
  def list_rindex(l, s):
 
4
 
5
  from tqdm import tqdm
6
 
7
+ from .section_parser import custom_mimic_cxr_rules, section_text
 
 
 
8
 
9
 
10
  def list_rindex(l, s):
prepare_dataset.py CHANGED
@@ -11,12 +11,8 @@ import duckdb
11
  import numpy as np
12
  import pandas as pd
13
 
14
- # try:
15
  from .create_section_files import create_section_files
16
 
17
- # except ImportError:
18
- # from create_section_files import create_section_files
19
-
20
 
21
  def mimic_cxr_image_path(dir, subject_id, study_id, dicom_id, ext='dcm'):
22
  return os.path.join(dir, 'p' + str(subject_id)[:2], 'p' + str(subject_id),
 
11
  import numpy as np
12
  import pandas as pd
13
 
 
14
  from .create_section_files import create_section_files
15
 
 
 
 
16
 
17
  def mimic_cxr_image_path(dir, subject_id, study_id, dicom_id, ext='dcm'):
18
  return os.path.join(dir, 'p' + str(subject_id)[:2], 'p' + str(subject_id),