Verbose error for negative positions in gerbers when the origin is wrong https://github.com/andreika-git/hellen-one/issues/350
This commit is contained in:
parent
85b2c71280
commit
9a3b4e6293
|
@ -60,7 +60,7 @@ def getCoords(pos, format):
|
||||||
if format[2]:
|
if format[2]:
|
||||||
y = format[2] - y
|
y = format[2] - y
|
||||||
return [x, y]
|
return [x, y]
|
||||||
sys.exit('Error! Cannot parse position ' + str(pos))
|
sys.exit('Error! Cannot parse position ' + str(pos) + '. Possible reason is negative position, place origin into bottom left corner')
|
||||||
|
|
||||||
def getSize(size, format):
|
def getSize(size, format):
|
||||||
if type(size) is list:
|
if type(size) is list:
|
||||||
|
|
Loading…
Reference in New Issue