Merge branch 'master' into #23-create_tool_path_from_image
Merge fixes
This commit is contained in:
17
pcbdevice/main.py
Normal file
17
pcbdevice/main.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from pcbdevice.utils.path import path
|
||||
from pcbdevice.utils.pbmformator import formatPbm
|
||||
from pcbdevice.utils.savetofile import matrixToFile
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Usage example
|
||||
|
||||
resourcesRawPath = 'tests/resources/raw/'
|
||||
resourcesFormattedPath = 'tests/resources/formatted/'
|
||||
resourcesPathOutput = 'resources/pathoutput/'
|
||||
|
||||
matrixToFile(formatPbm(resourcesRawPath + 'test1ascii.pbm'), resourcesFormattedPath + 'test1.csv')
|
||||
|
||||
matrixToFile(path(formatPbm(resourcesRawPath + 'test100x100.pbm'), 4), resourcesPathOutput + 'test100x100.csv')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user