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

Removed prints in generate examples

Browse files
Files changed (1) hide show
  1. AeroPath.py +0 -4
AeroPath.py CHANGED
@@ -152,11 +152,7 @@ class AeroPath(datasets.GeneratorBasedBuilder):
152
  def _generate_examples(self, split):
153
  # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
154
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
155
- # self.DATA_DIR = os.path.join(self.DATA_DIR, "../")
156
- print("new data dir:", self.DATA_DIR)
157
  for patient_id in os.listdir(self.DATA_DIR):
158
- print("self.DATA_DIR:", self.DATA_DIR)
159
- print("patient_id:", patient_id)
160
  curr_path = os.path.join(self.DATA_DIR, patient_id)
161
  yield patient_id, {
162
  "ct": os.path.join(curr_path, patient_id + "_CT_HR.nii.gz"),
 
152
  def _generate_examples(self, split):
153
  # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
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"),