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

Ignore README and LICENSE in generate examples

Browse files
Files changed (1) hide show
  1. AeroPath.py +1 -0
AeroPath.py CHANGED
@@ -154,6 +154,7 @@ 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
  yield patient_id, {
158
  "ct": os.path.join(curr_path, patient_id + "_CT_HR.nii.gz"),
159
  "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
  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"),