-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from PatrickOHara/name_changes
🚚 name changes
- Loading branch information
Showing
8 changed files
with
29 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
# python cache | ||
*.egg-info | ||
__pycache__ | ||
.eggs | ||
|
||
# misc | ||
.vscode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ mkdocs-material>=6.0.2 | |
mypy>=0.782 | ||
pylint>=2.6.0 | ||
pytest>=6.1.1 | ||
pytest-tspwplib>=0.2.0b1 | ||
pytest-tspwplib>=0.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
"""Useful functions for parsing""" | ||
|
||
from pathlib import Path | ||
from .types import Alpha, Generation, InstanceName | ||
from .types import Alpha, Generation, GraphName | ||
|
||
|
||
def build_path_to_oplib_instance( | ||
oplib_root: Path, | ||
generation: Generation, | ||
name: InstanceName, | ||
name: GraphName, | ||
alpha: Alpha = Alpha.fifty, | ||
) -> Path: | ||
"""Build a filepath to a oplib instance""" | ||
filename: str = name + "-" + generation.value + "-" + str(alpha.value) + ".oplib" | ||
return oplib_root / "instances" / generation.value / filename | ||
|
||
|
||
def build_path_to_tsplib_instance(tsplib_root: Path, name: InstanceName) -> Path: | ||
def build_path_to_tsplib_instance(tsplib_root: Path, name: GraphName) -> Path: | ||
"""Build a filepath to a tsplib instance""" | ||
filename = name.value + ".tsp" | ||
return tsplib_root / filename |