andreped commited on
Commit
fd6eb39
·
1 Parent(s): 3a7ab0e

Forgot continue in generate examples

Browse files
Files changed (1) hide show
  1. AeroPath.py +2 -1
AeroPath.py CHANGED
@@ -154,7 +154,8 @@ class AeroPath(datasets.GeneratorBasedBuilder):
154
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
155
  for patient_id in os.listdir(self.DATA_DIR):
156
  curr_path = os.path.join(self.DATA_DIR, patient_id)
157
- if patiend_id in ["README.md", "licence.md"]
 
158
  yield patient_id, {
159
  "ct": os.path.join(curr_path, patient_id + "_CT_HR.nii.gz"),
160
  "airways": os.path.join(curr_path, patient_id + "_CT_HR_label_airways.nii.gz"),
 
154
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
155
  for patient_id in os.listdir(self.DATA_DIR):
156
  curr_path = os.path.join(self.DATA_DIR, patient_id)
157
+ if patiend_id in ["README.md", "licence.md"]:
158
+ continue
159
  yield patient_id, {
160
  "ct": os.path.join(curr_path, patient_id + "_CT_HR.nii.gz"),
161
  "airways": os.path.join(curr_path, patient_id + "_CT_HR_label_airways.nii.gz"),