Fix script
Browse files- heurigen-data.py +3 -4
heurigen-data.py
CHANGED
|
@@ -30,9 +30,7 @@ _BUILDER_CONFIGS = [
|
|
| 30 |
HeuriGenConfig(
|
| 31 |
name="protein_sequence_design", description="Protein sequence design instances"
|
| 32 |
),
|
| 33 |
-
HeuriGenConfig(
|
| 34 |
-
name="pedigree", description="pedigree problem instances"
|
| 35 |
-
),
|
| 36 |
HeuriGenConfig(
|
| 37 |
name="picked_up_delivery", description="picked-up-delivery instances"
|
| 38 |
),
|
|
@@ -58,7 +56,8 @@ class HeuriGen(datasets.GeneratorBasedBuilder):
|
|
| 58 |
)
|
| 59 |
|
| 60 |
def _split_generators(self, dl_manager):
|
| 61 |
-
|
|
|
|
| 62 |
|
| 63 |
# helper – returns all files in that split, including files in subfolders but not the folders themselves
|
| 64 |
def files(pattern):
|
|
|
|
| 30 |
HeuriGenConfig(
|
| 31 |
name="protein_sequence_design", description="Protein sequence design instances"
|
| 32 |
),
|
| 33 |
+
HeuriGenConfig(name="pedigree", description="pedigree problem instances"),
|
|
|
|
|
|
|
| 34 |
HeuriGenConfig(
|
| 35 |
name="picked_up_delivery", description="picked-up-delivery instances"
|
| 36 |
),
|
|
|
|
| 56 |
)
|
| 57 |
|
| 58 |
def _split_generators(self, dl_manager):
|
| 59 |
+
root = dl_manager.manual_dir or os.path.dirname(__file__)
|
| 60 |
+
base = os.path.join(root, self.config.name)
|
| 61 |
|
| 62 |
# helper – returns all files in that split, including files in subfolders but not the folders themselves
|
| 63 |
def files(pattern):
|