From 0d359412410c5f2fd6c1fb33dd27a45a220fa2eb Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Tue, 3 Dec 2019 12:06:58 -0800 Subject: [PATCH] Fix missing dbUnit conversion in gdsMill --- compiler/gdsMill/gdsMill/gds2reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/gdsMill/gdsMill/gds2reader.py b/compiler/gdsMill/gdsMill/gds2reader.py index 7e519c36..f660fe3c 100644 --- a/compiler/gdsMill/gdsMill/gds2reader.py +++ b/compiler/gdsMill/gdsMill/gds2reader.py @@ -164,7 +164,7 @@ class Gds2reader: print("Mask: "+mask) elif(idBits==b'\x03\x05'): #this is also wrong b/c python doesn't natively have an 8 byte float userUnits=self.ieeeDoubleFromIbmData(record[2:10]) - dbUnits=self.ieeeDoubleFromIbmData + dbUnits=self.ieeeDoubleFromIbmData(record[10:18]) self.layoutObject.info["units"] = (userUnits,dbUnits) if(self.debugToTerminal==1): print("Units: 1 user unit="+str(userUnits)+" database units, 1 database unit="+str(dbUnits)+" meters.")