From 3babccc9484d62b785f6334b66d326917ddd521e Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 12 Feb 2019 19:50:54 -0500 Subject: [PATCH] #23 create tool path from image, close #23 --- pcbdevice/main.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pcbdevice/main.py b/pcbdevice/main.py index c4947e6..397b3a7 100644 --- a/pcbdevice/main.py +++ b/pcbdevice/main.py @@ -9,10 +9,15 @@ if __name__ == "__main__": resourcesRawPath = 'tests/resources/raw/' resourcesFormattedPath = 'tests/resources/formatted/' resourcesPathOutput = 'resources/pathoutput/' + resourcesExpectedPath = 'tests/resources/expected/' - matrixToFile(formatPbm(resourcesRawPath + 'test1ascii.pbm'), resourcesFormattedPath + 'test1.csv') + # matrixToFile(formatPbm(resourcesRawPath + 'test1ascii.pbm'), resourcesFormattedPath + 'test1.csv') - plotPath(path(formatPbm(resourcesRawPath + 'test100x100.pbm'), 5)) + matrixToFile(path(formatPbm(resourcesRawPath + 'imagestest-11.pbm'), 4), resourcesExpectedPath + 'imagestest-11.csv') + matrixToFile(path(formatPbm(resourcesRawPath + 'imagestest-22.pbm'), 4), resourcesExpectedPath + 'imagestest-22.csv') + matrixToFile(path(formatPbm(resourcesRawPath + 'imagestest-33.pbm'), 4), resourcesExpectedPath + 'imagestest-33.csv') + #plotPath(path(formatPbm(resourcesRawPath + 'imagestest-22.pbm'), 8)) + #plotPath(path(formatPbm(resourcesRawPath + 'test100x100.pbm'), 5))