@@ -760,7 +760,7 @@ def decodeFunc(self,inVar, funcName):
760760 s += " ) "
761761 elif funcName == "Demux" :
762762 s = "("
763- out = inVar [0 ][" numO" ]
763+ out = inVar [0 ][' numO' ]
764764 v2 , v1 , v0 = (out & 1 )^ 1 , ((out & 2 ) >> 1 )^ 1 , ((out & 4 ) >> 2 )^ 1
765765 s += v0 * " !" + inVar [0 ]['val' ] + " & " + v1 * "!" + inVar [1 ]['val' ] + " & " + v2 * "!" + inVar [2 ]['val' ] + \
766766 " & " + inVar [3 ]["einv" ] + " & " + inVar [4 ]["einv" ] + " & " + inVar [5 ]["enb" ]
@@ -787,11 +787,11 @@ def decodeFunc(self,inVar, funcName):
787787 sT = f"T{ self .varTempNum } = "
788788 sT += "((" + inVar [0 ]['J' ] + f" & !T{ self .varTempNum } _precedant) | (!{ K } & T{ self .varTempNum } _precedant)) & { set } & { rst } & CLK | { iset } "
789789 sT += " ); "
790- s = inVar [0 ][" numO" ]* " !" + f"T{ self .varTempNum } "
790+ s = inVar [0 ][' numO' ]* " !" + f"T{ self .varTempNum } "
791791 self .varTempNum += 1
792792 self .varScript += [sT ]
793793 elif funcName == "BinaryCounter" :
794- if inVar [0 ][" numO" ] == 0 :
794+ if inVar [0 ][' numO' ] == 0 :
795795 self .numTemp = []
796796 CE = inVar [6 ]["CE" ]
797797 iU = inVar [8 ]["iU" ]
@@ -819,7 +819,7 @@ def decodeFunc(self,inVar, funcName):
819819 self .numTemp += [self .varTempNum ]
820820 self .varTempNum += 1
821821 self .varScript += [sT ]
822- s = f"T{ self .numTemp [inVar [0 ][" numO" ]]} "
822+ s = f"T{ self .numTemp [inVar [0 ][' numO' ]]} "
823823
824824 return s
825825
@@ -1024,8 +1024,8 @@ def checkCloseCircuit(self, ioOut, params={}):
10241024
10251025
10261026 if self .is_linked_to (self .pwrP , inFunc ):
1027- inFuncConst += [{constKey :pos , "num" :n , " numO" :no }]
1028- else : inFuncConst += [{constKey :neg , "num" :n , " numO" :no }]
1027+ inFuncConst += [{constKey :pos , "num" :n , ' numO' :no }]
1028+ else : inFuncConst += [{constKey :neg , "num" :n , ' numO' :no }]
10291029 findIn = True
10301030 print ("connecté à pwr" )
10311031 if not findIn :
@@ -1175,7 +1175,7 @@ def checkCloseCircuit(self, ioOut, params={}):
11751175 if c == pt :
11761176 outPrev = "!" + outPrev
11771177 isPinOut = True
1178- inFuncConst += [{constKey :outPrev , "num" :n , " numO" :no }] # [self.mcu_pin[f"O{id[4:]}"]]
1178+ inFuncConst += [{constKey :outPrev , "num" :n , ' numO' :no }] # [self.mcu_pin[f"O{id[4:]}"]]
11791179 findNext = True
11801180 if not isPinOut :
11811181 findNext , s = self .checkCloseCircuit (outZone ,params )
@@ -1198,7 +1198,7 @@ def checkCloseCircuit(self, ioOut, params={}):
11981198 if c == pt :
11991199 s = "!" + s
12001200
1201- inFuncConst += [{constKey :s , "num" :n , " numO" :no }]
1201+ inFuncConst += [{constKey :s , "num" :n , ' numO' :no }]
12021202 self .chip_out_script += [(s ,outZone )]
12031203 else :
12041204 # il faut voir si une sortie io n'existe pas sinon var temp
@@ -1228,7 +1228,7 @@ def checkCloseCircuit(self, ioOut, params={}):
12281228 if c == pt :
12291229 outPrev = "!" + outPrev
12301230
1231- inFuncConst += [{constKey :outPrev , "num" :n , " numO" :no }]
1231+ inFuncConst += [{constKey :outPrev , "num" :n , ' numO' :no }]
12321232 if not isPinOut :
12331233 for coc in self .chip_out_script :
12341234 if coc [1 ] == outZone :
@@ -1252,7 +1252,7 @@ def checkCloseCircuit(self, ioOut, params={}):
12521252 if c == pt :
12531253 exp = "!" + exp
12541254
1255- inFuncConst += [{constKey :exp , "num" :n , " numO" :no }]
1255+ inFuncConst += [{constKey :exp , "num" :n , ' numO' :no }]
12561256 break
12571257 findNext = True
12581258 break
0 commit comments