-
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 #3 from PAICookers/dev
v0.0.4
- Loading branch information
Showing
5 changed files
with
34 additions
and
23 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
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,25 @@ | ||
from pathlib import Path | ||
from paitest.paitest import GenTestCases, TestChipDirection | ||
from paitest.paitest import GenTestCases | ||
|
||
|
||
if __name__ == "__main__": | ||
'''Here is a simple exmaple''' | ||
import argparse | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument("-p", "--path", type=str, | ||
default="./test", help="path to store test frames") | ||
parser.add_argument("-g", "--groups", type=int, | ||
default=1, help="how many groups of test frames to be generated") | ||
parser.add_argument("-d", "--direction", type=TestChipDirection, | ||
default=TestChipDirection.EAST, help="Test chip direction relative to the location of core") | ||
parser.add_argument("-d", "--direction", type=str, | ||
default="EAST", help="Test chip direction relative to the location of core") | ||
|
||
args = parser.parse_args() | ||
|
||
save_path = Path(args.path) | ||
direction = args.direction | ||
groups = args.groups | ||
|
||
GenTestCases(save_path, direction, groups, False) | ||
GenTestCases(save_path, direction, groups) | ||
|
||
# Then, run "python main.py -p ./test -g 10 -d EAST" in your environment. |
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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "PAITest" | ||
version = "0.0.3" | ||
version = "0.0.4" | ||
description = "Test module for PAICORE 2.0" | ||
authors = ["KafCoppelia <[email protected]>"] | ||
license = "AGPL v3.0" | ||
|