thewall commited on
Commit
ee027c7
·
1 Parent(s): a15bf60

Update deepbindweight.py

Browse files
Files changed (1) hide show
  1. deepbindweight.py +5 -2
deepbindweight.py CHANGED
@@ -47,9 +47,12 @@ class DeepBindWeight(datasets.GeneratorBasedBuilder):
47
  def _generate_examples(self, filepath):
48
  """This function returns the examples in the raw (text) form."""
49
  logger.info("generating examples from = %s", filepath)
 
 
 
 
50
  yield 0, {"config": filepath[0],
51
- "existed": os.path.exists(filepath[0]) and os.path.exists(filepath[1])
52
- and os.path.exists(filepath[2]) and os.path.exists(filepath[4]),
53
  "selex": filepath[1],
54
  'tf': filepath[2]}
55
 
 
47
  def _generate_examples(self, filepath):
48
  """This function returns the examples in the raw (text) form."""
49
  logger.info("generating examples from = %s", filepath)
50
+ flag = True
51
+ for file in filepath:
52
+ flag = flag and os.path.exists(file)
53
+
54
  yield 0, {"config": filepath[0],
55
+ "existed": flag,
 
56
  "selex": filepath[1],
57
  'tf': filepath[2]}
58