本文整理汇总了Python中ShareYourSystem.getIsEqualBool方法的典型用法代码示例。如果您正苦于以下问题:Python ShareYourSystem.getIsEqualBool方法的具体用法?Python ShareYourSystem.getIsEqualBool怎么用?Python ShareYourSystem.getIsEqualBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ShareYourSystem
的用法示例。
在下文中一共展示了ShareYourSystem.getIsEqualBool方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: rowAfter
# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import getIsEqualBool [as 别名]
def rowAfter(self,**_RowingVariablesList):
#debug
self.debug('Start of the method')
#debug
self.debug('Look if we have to make row first the noded children')
#IsNodingInsertingBool
if 'IsNodingRowingBool' not in _InsertingVariablesList or _InsertingVariablesList['IsNodingInsertingBool']:
#debug
self.debug(
[
'We are going to make row all the joined noded children',
'ModelStr is '+str(ModelStr)
]
)
#Row each noded children
map(
lambda __Variable:
__Variable.row(ModelStr),
self.ModeledDict['JoinedNodifiedOrderedDict'].values()
)
#debug
self.debug(
[
'The noded children have inserted'
]
)
#debug
self.debug(
[
"self.ModeledDict['ModelStr'] is "+str(self.ModeledDict['ModelStr'])
"We are going to check if the joined model is already inserted...",
"First look if JoinedModeledDict!={} is "+str(len(JoinedModeledDict)>0)
]
)
#Alias
JoinedModeledDict=self.ModeledDict['JoinedModeledDict']
#Check
if len(JoinedModeledDict)>0:
#debug
self.debug("Ok there is some not empty JoinedModeledDict here")
#set JoinedRetrievingIndexesListKeyStr
JoinedRetrievingIndexesListKeyStr=self.ModeledDict['JoinedRetrievingIndexesListKeyStr']
#Definition the GettingStrsList and the GettedVariablesList
if 'ColumningTuplesList' in JoinedModeledDict:
#debug
self.debug('Check that this joined row is a new row in the table or not')
#Get the GettingStrsList and GettedVariablesList
GettingStrsList=SYS.unzip(JoinedModeledDict['ColumningTuplesList'],[0])
GettedVariablesList=self.pick(GettingStrsList)
#Check if it was already rowed
IsRowedBoolsList=map(
lambda __Row:
all(
map(
lambda __GettingStr,__GettedVariable:
SYS.getIsEqualBool(__Row[__GettingStr],__GettedVariable),
GettingStrsList,
GettedVariablesList
)
),
JoinedModeledDict['TabledTable'].iterrows()
)
#debug
self.debug(
[
'self.StructuredKeyStr is '+str(
self.StructuredKeyStr) if hasattr(self,'StructuredKeyStr') else "",
'IsRowedBoolsList is '+str(IsRowedBoolsList)
]
)
#If it is rowed then set the JoinedRetrievingIndexesList
try:
RowInt=IsRowedBoolsList.index(True)
except ValueError:
RowInt=-1
#debug
self.debug('So the corresponding RowInt is '+str(RowInt))
#set the RowInt
self.ModeledDict['JoinedOrderedDict'][JoinedRetrievingIndexesListKeyStr][1]=RowInt
#.........这里部分代码省略.........
示例2: do_row
# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import getIsEqualBool [as 别名]
def do_row(self):
""""""
#debug
'''
self.debug(
[
'We row here'
]
)
'''
#Check
if self.ModeledParentControllerDeriveModelerVariable!=None:
#debug
'''
self.ModeledParentControllerDeriveModelerVariable.debug('ParentSpeaking...')
'''
#Check
if self.ModelMongoBool:
#Update
self.RowedMongoPickOrderedDict.update(
zip(
self.RowingKeyStrsList,
#self.ModeledParentControllerDeriveModelerVariable[Getter.GetMapStr](
# *self.ModelKeyStrsList
#).ItemizedMapValueVariablesList
self.ModeledParentControllerDeriveModelerVariable.mapGet(
self.ModelKeyStrsList
)
)
)
#debug
'''
self.debug(
[
('self.',self,[
'RowedMongoPickOrderedDict',
'ModeledMongoCollection'
]
),
'list(self.ModeledMongoCollection.find()) is '+SYS._str(
list(self.ModeledMongoCollection.find()))
]
)
'''
#Check if it was already rowed
self.RowedMongoIsBoolsList=map(
lambda __Row:
all(
map(
lambda __RowedItemTuple:
SYS.getIsEqualBool(
__Row[__RowedItemTuple[0]],
__RowedItemTuple[1]
),
self.RowedMongoPickOrderedDict.items()
)
),
self.ModeledMongoCollection.find()
)
#debug
'''
self.debug(
[
('self.',self,[
'RowedMongoIsBoolsList'
]),
'Maybe there is now row or no rowing Key str ...so it is false already',
'len(self.RowedMongoIsBoolsList)==0 is ',
str(len(self.RowedMongoIsBoolsList)==0),
'len(self.RowedMongoPickOrderedDict)==0 is',
str(len(self.RowedMongoPickOrderedDict))
]
)
'''
#set
if len(self.RowedMongoIsBoolsList)==0 or len(self.RowedMongoPickOrderedDict)==0:
self.RowedMongoIsBool=False
else:
self.RowedMongoIsBool=any(self.RowedMongoIsBoolsList)
#Init to the len of the table
self.RowedMongoIndexInt=len(self.RowedMongoIsBoolsList)
#debug
'''
self.debug(('self.',self,[
'RowedMongoIndexInt',
'RowedMongoIsBool'
]))
'''
#.........这里部分代码省略.........
示例3: row
# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import getIsEqualBool [as 别名]
def row(self,**_VariablesList):
#debug
self.debug('Start of the method')
#debug
self.debug(
[
"self.ModelingModelStr is "+str(self.ModelingModelStr),
"We are going to check if the joined model is already inserted...",
"First look if self.JoinedModeledDatabase!={} is "+str(len(self.JoinedModeledDatabase)>0)
]
)
#Check
if self.JoinedDatabasePointer!=None:
#debug
self.debug("Ok there is a self.JoinedDatabasePointer")
#Alias
JoinedRetrievingIndexesList=self.JoinedRetrievingIndexesList
JoinedRetrievingIndexesListKeyStr=self.JoinedRetrievingIndexesListKeyStr
#debug
self.debug('Check that this joined row is a new row in the table or not')
#Get the GettingStrsList and GettedVariablesList
GettingStrsList=SYS.unzip(self.JoinedModeledDatabase.ModelingColumningTuplesList,[0])
GettedVariablesList=self.pick(GettingStrsList)
#Check if it was already rowed
IsRowedBoolsList=map(
lambda __Row:
all(
map(
lambda __GettingStr,__GettedVariable:
SYS.getIsEqualBool(__Row[__GettingStr],__GettedVariable),
GettingStrsList,
GettedVariablesList
)
),
self.JoinedDatabasePointer.TabledTable.iterrows()
)
#debug
self.debug(
[
'self.StructuredKeyStr is '+str(
self.StructuredKeyStr) if hasattr(self,'StructuredKeyStr') else "",
'IsRowedBoolsList is '+str(IsRowedBoolsList)
]
)
#If it is rowed then set the JoinedRetrievingIndexesList
try:
RowInt=IsRowedBoolsList.index(True)
except ValueError:
RowInt=-1
#debug
self.debug('So the corresponding RowInt is '+str(RowInt))
#set the RowInt
JoinedRetrievingIndexesList[1]=RowInt
#self.ModeledDict['JoinedOrderedDict'][JoinedRetrievingIndexesListKeyStr][1]=RowInt
#Alias
'''
JoinedOrderedDict=self.ModeledDict['JoinedOrderedDict']
JoinedRetrievingIndexesList=self.ModeledDict['JoinedOrderedDict'][JoinedRetrievingIndexesListKeyStr]
#Give the JoinedRetrievingIndexesList to itself
JoinedOrderedDict.__setitem__(
JoinedRetrievingIndexesListKeyStr,
JoinedRetrievingIndexesList
)
'''
'''
#debug
self.debug(
[
'JoinedOrderedDict is now',
SYS.represent(JoinedOrderedDict)
]
)
'''
#debug
#self.debug('So we set the JoinedRetrievingIndexesList in the RowedIdentifiedOrderedDict')
#Update the self.RowedIdentifiedOrderedDic
#self.ModeledDict['RowedIdentifiedOrderedDict'].update(JoinedOrderedDict)
#self.ModeledDict['RowedIdentifiedOrderedDict'].__setitem__(
# JoinedRetrievingIndexesListKeyStr,
# JoinedRetrievingIndexesList
# )
#.........这里部分代码省略.........
示例4: rowAfter
# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import getIsEqualBool [as 别名]
def rowAfter(self,**_RowingVariablesList):
#debug
self.debug('Start of the method')
#debug
DebuggingStr="self.ModeledDict['ModelStr'] is "+str(self.ModeledDict['ModelStr'])
DebuggingStr+='\nWe are going to check if this model is already inserted...'
self.debug(DebuggingStr)
#Alias
JoinedModeledDict=self.ModeledDict['JoinedModeledDict']
#Check
if JoinedModeledDict!={}:
#set JoinedRetrievingIndexesListKeyStr
JoinedRetrievingIndexesListKeyStr=self.ModeledDict['JoinedRetrievingIndexesListKeyStr']
#Definition the GettingStrsList and the GettedVariablesList
if 'ColumningTuplesList' in JoinedModeledDict:
#debug
self.debug('Check that this row is a new row in the table or not')
#Get the GettingStrsList and GettedVariablesList
GettingStrsList=SYS.unzip(JoinedModeledDict['ColumningTuplesList'],[0])
GettedVariablesList=self.pick(GettingStrsList)
#Check if it was already rowed
IsRowedBoolsList=map(
lambda __Row:
all(
map(
lambda __GettingStr,__GettedVariable:
SYS.getIsEqualBool(__Row[__GettingStr],__GettedVariable),
GettingStrsList,
GettedVariablesList
)
),
JoinedModeledDict['TabularedTable'].iterrows()
)
#debug
if hasattr(self,'StructuredKeyStr'):
self.debug('self.StructuredKeyStr is '+str(self.StructuredKeyStr))
self.debug('IsRowedBoolsList is '+str(IsRowedBoolsList))
#If it is rowed then set the JoinedRetrievingIndexesList
try:
RowInt=IsRowedBoolsList.index(True)
except ValueError:
RowInt=-1
#debug
self.debug('So the corresponding RowInt is '+str(RowInt))
#set the RowInt
self.ModeledDict['JoinedOrderedDict'][JoinedRetrievingIndexesListKeyStr][1]=RowInt
#Alias
JoinedOrderedDict=self.ModeledDict['JoinedOrderedDict']
JoinedRetrievingIndexesList=self.ModeledDict['JoinedOrderedDict'][JoinedRetrievingIndexesListKeyStr]
JoinedNodifiedNodeStr=self.ModeledDict['JoinedNodifiedNodeStr']
#Give the JoinedRetrievingIndexesList to itself
JoinedOrderedDict.__setitem__(
JoinedRetrievingIndexesListKeyStr,
JoinedRetrievingIndexesList
)
#debug
self.debug(
[
'JoinedOrderedDict is now',
SYS.represent(JoinedOrderedDict)
]
)
#Give to the parent
if JoinedNodifiedNodeStr!="":
ParentPointer=getattr(
self,
JoinedNodifiedNodedStr+'ParentPointer'
)
if ParentPointer!=None:
ParentPointer['App_Model_'+ModelingStr+'Dict']['JoinedOrderedDict'][
getattr(
self,
JoinedNodifiedNodedStr+'KeyStr'
)+JoinedRetrievingIndexesListKeyStr
]=JoinedRetrievingIndexesList
#Update the self.RowedIdentifiedOrderedDic
self.ModeledDict['RowedIdentifiedOrderedDict'].update(JoinedOrderedDict)
#debug
self.debug('End of the method')
示例5: join
# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import getIsEqualBool [as 别名]
#.........这里部分代码省略.........
'''
#Check if the actual setup is already rowed
if _LocalJoiningVariablesDict['IsCheckingJoiningBool'] and self.JoinedJoinedList[1]==-1:
#Definition the GettingStrsList and the GettedVariablesList
if 'ColumningTuplesList' in self.JoinedModeledDict:
#Get the GettingStrsList and GettedVariablesList
GettingStrsList=SYS.unzip(self.JoinedModeledDict['ColumningTuplesList'],[0])
GettedVariablesList=self.pick(GettingStrsList)
#debug
'''
print(map(
lambda __Row:
map(
lambda __GettingStr,__GettedVariable:
all(__Row[__GettingStr]==__GettedVariable),
GettingStrsList,
GettedVariablesList
),
JoinedTabularedTable.iterrows()
)
)
'''
#Check if it was already rowed
IsRowedBoolsList=map(
lambda __Row:
all(
map(
lambda __GettingStr,__GettedVariable:
SYS.getIsEqualBool(__Row[__GettingStr],__GettedVariable),
GettingStrsList,
GettedVariablesList
)
),
self.JoinedTabularedTable.iterrows()
)
#debug
'''
print('self.StructuredKeyStr is ',self.StructuredKeyStr)
print('IsRowedBoolsList is ',IsRowedBoolsList)
print('')
'''
#If it is rowed then set the JoinedJoinedList
try:
IndexInt=IsRowedBoolsList.index(True)
except ValueError:
IndexInt=-1
self.JoinedJoinedList[1]=IndexInt
#Give to itself
JoinedOrderedSetTagStr=self.JoinedNodifiedNodedStr+'JoinedOrderedDict'
if hasattr(self,JoinedOrderedSetTagStr):
self.JoinedOrderedDict=getattr(self,JoinedOrderedSetTagStr)
if self.JoinedOrderedDict==None:
self.JoinedOrderedDict=collections.OrderedDict()
self.JoinedOrderedDict.__setitem__(
self.JoinedJoinedListKeyStr,self.JoinedJoinedList
)
if self.JoinedNodifiedNodedStr!="":
示例6: recoverBefore
# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import getIsEqualBool [as 别名]
def recoverBefore(self,**_LocalRecoveringVariablesDict):
#debug
print('Joiner recoverBefore method')
print('self.RetrievedFilteredRowedDictsList is ')
SYS._print(self.RetrievedFilteredRowedDictsList)
if hasattr(self,'StructuredKeyStr'):
print("self['StructuredKeyStr'] is ",self.StructuredKeyStr)
print('')
if len(self.RetrievedFilteredRowedDictsList)==1:
#debug
'''
print('Joiner It is good, there is one solution !')
print('')
'''
#Definition a JoinedRecoveredDict
JoinedRecoveredDict=self.RetrievedFilteredRowedDictsList[0]
#debug
print('Joiner JoinedRecoveredDict is ')
SYS._print(JoinedRecoveredDict)
print('self.JoinedNodifiedNodedStr is ',self.JoinedNodifiedNodedStr)
if hasattr(self,'StructuredKeyStr'):
print("self['StructuredKeyStr'] is ",self.StructuredKeyStr)
print('')
#Maybe we have to recover the children before
ChildJoinersList=self.JoinedNodifiedOrderedDict.values()
if len(ChildJoinersList)>0:
#set each Children and recover each
JoinedNodifiedKeyStr=self.JoinedNodifiedNodedStr+'KeyStr'
#debug
print('We are going to make recover each children before')
if hasattr(self,'StructuredKeyStr'):
print('self.StructuredKeyStr is ',self.StructuredKeyStr)
print('')
print('self.JoinedNodifiedOrderedDict.values() is ',self.JoinedNodifiedOrderedDict.values())
print('')
#Map a Recover
map(
lambda __JoinedJoiner:
__JoinedJoiner.__setitem__(
'/App_Model_'+self.ModeledDict['ModelingStr']+'Dict/RetrievingIndexesListsList',
[
(
JoinStr+self.JoinedJoinedListKeyStr,
(
SYS.getIsEqualBool,
JoinedRecoveredDict[
self.JoinedNodifiedNodedStr+getattr(
__JoinedJoiner,
JoinedNodifiedKeyStr
)+self.JoinedJoinedListKeyStr
]
)
)
]
).recover(self.ModeledKeyStr),
ChildJoinersList
)
#Definition the
AppendingGettingStrsList=SYS.unzip(self.JoinedFilteredMergedRowedDictsListTuplesList,[0])
#debug
print('Joiner maybe update first the joined model')
print('self.JoinedFilteredMergedRowedDictsListTuplesList is')
SYS._print(self.JoinedFilteredMergedRowedDictsListTuplesList)
print('AppendingGettingStrsList is ',AppendingGettingStrsList)
#Next we have maybe to update with the joined model
if '/' in AppendingGettingStrsList:
#Definition the IndexInt of the joined model
IndexInt=AppendingGettingStrsList.index('/')
#Definition the JoinedFilteredMergedRowedDictsList
JoinedFilteredMergedRowedDictsList=self.JoinedFilteredMergedRowedDictsListTuplesList[
IndexInt][1]
#Definition the JoinedJoinedList
JoinedJoinedList=JoinedRecoveredDict[self.JoinedJoinedListKeyStr]
#debug
print('JoinedFilteredMergedRowedDictsList is ')
SYS._print(JoinedFilteredMergedRowedDictsList)
print('JoinedJoinedList is ',JoinedJoinedList)
if hasattr(self,'StructuredKeyStr'):
print("self['StructuredKeyStr'] is ",self.StructuredKeyStr)
print('')
#Take the first element of self.JoinedFilteredMergedRowedDictsTuplesList which corresponds to the Joined Model at this level
JoinedRowedDict=next(
RowedDict for RowedDict in JoinedFilteredMergedRowedDictsList
#.........这里部分代码省略.........
示例7: do_row
# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import getIsEqualBool [as 别名]
def do_row(self):
""""""
#debug
'''
self.debug('We row here')
'''
#Check
if self.ModelDeriveControllerVariable!=None:
#debug
'''
self.ModelDeriveControllerVariable.debug('ParentSpeaking...')
'''
#Check
if self.ModelingMongoBool:
#Update
self.RowedMongoPickOrderedDict.update(
zip(
self.RowingKeyStrsList,
self.ModelDeriveControllerVariable[Getter.GetMapStr](
*self.ModelKeyStrsList
).ItemizedMapValueVariablesList
)
)
#debug
'''
self.debug(
[
('self.',self,[
'RowedMongoPickOrderedDict',
'TabledMongoCollection'
]
),
'list(self.TabledMongoCollection.find()) is '+SYS._str(
list(self.TabledMongoCollection.find()))
]
)
'''
#Check if it was already rowed
self.RowedMongoIsBoolsList=map(
lambda __Row:
all(
map(
lambda __RowedItemTuple:
SYS.getIsEqualBool(
__Row[__RowedItemTuple[0]],
__RowedItemTuple[1]
),
self.RowedMongoPickOrderedDict.items()
)
),
self.TabledMongoCollection.find()
)
#debug
'''
self.debug(('self.',self,[
'RowedMongoIsBoolsList'
]))
'''
#set
if len(self.RowedMongoIsBoolsList)==0:
self.RowedMongoIsBool=False
else:
self.RowedMongoIsBool=any(self.RowedMongoIsBoolsList)
#Init to the len of the table
self.RowedMongoIndexInt=len(self.RowedMongoIsBoolsList)
#debug
'''
self.debug(('self.',self,[
'RowedMongoIndexInt',
'RowedMongoIsBool'
]))
'''
#But maybe find a last index
if self.RowedMongoIsBool:
if len(self.RowedMongoIsBoolsList)>0:
self.RowedMongoIndexInt=self.RowedMongoIsBoolsList.index(True)
#debug
'''
self.debug(('self.',self,['RowedMongoIsBool','RowedMongoIndexInt']))
'''
#Check
if self.ModelingHdfBool:
#debug
'''
self.debug('This is a hdf row here')
#.........这里部分代码省略.........