当前位置: 首页>>代码示例>>Python>>正文


Python ShareYourSystem.update方法代码示例

本文整理汇总了Python中ShareYourSystem.update方法的典型用法代码示例。如果您正苦于以下问题:Python ShareYourSystem.update方法的具体用法?Python ShareYourSystem.update怎么用?Python ShareYourSystem.update使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ShareYourSystem的用法示例。


在下文中一共展示了ShareYourSystem.update方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: do_set

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import update [as 别名]

#.........这里部分代码省略.........
									)
							'''

				#debug
				'''
				self.debug(
					[
						'we just set in the __dict__',
						('self.',self,[
								'SettingKeyVariable',
								'SettingValueVariable'
							])
					]
				)
				'''

				#map
				'''
				if type(self.SettingKeyVariable)==SYS.MapListClass:

					#map
					map(
							lambda __MappedVariable:
							self.__setitem__(
								*__MappedVariable
							),
							self.SettingKeyVariable
						)

					#Return an output dict
					return {"HookingIsBool":False}
				else:
				'''

				#__setitem__ in the __dict__, this is an utility set
				self.__dict__[
					self.SettingKeyVariable
				]=self.SettingValueVariable

				#add in the SettingValue
				try:
					self.SettingValueVariable.SetTagStr=self.SettingKeyVariable
					#self.SettingValueVariable.SetDeriveSetter=self
				except:
					pass

				#Return
				return {'HookingIsBool':False}

		#/####################/#
		# Case of a non method  with set with a set dict
		#

		elif hasattr(self.SettingKeyVariable,'items'):

			#debug
			self.debug(
					[
						'SettingKeyVariable has items...',
						('self.',self,['SettingKeyVariable'])
					]
				)

			try:

				#debug
				self.debug(
						'We set with a SetKeyVariable'
					)

				#set
				self.set(
					self.SettingKeyVariable['SetKeyVariable'],
					self.SettingValueVariable
				)

				#delete
				del self.SettingKeyVariable['SetKeyVariable']

			except:

				#debug
				self.debug(
						'We set with a SetKeyVariable'
					)

				#set
				self.set(
					self.SettingKeyVariable['SetKeyVariable'],
					SYS.update(
						self.SettingKeyVariable,
						self.SettingValueVariable
					)
				)

				#delete
				del self.SettingKeyVariable['SetKeyVariable']

			#Return
			return {'HookingIsBool':False}
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:104,代码来源:__init__+copy.py

示例2: do_point

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import update [as 别名]
	def do_point(self):

		#/####################/#
		# Adapt the type for getting things to point
		#

		#debug
		'''
		self.debug(
			[
				'Adapt the type for getting things to point',
				("self.",self,[
								'PointingKeyVariable',
							])
			]
		)
		'''


		#init
		PointedValueVariablesList=SYS.GetList(
			self.PointingKeyVariable,
			self
		)

		#debug
		self.debug(
				[
					'in the end, PointedValueVariablesList is ',
					SYS._str(PointedValueVariablesList)
				]
			)

		#/####################/#
		# Adapt the type for setting things in the commanded variables
		#

		#debug
		'''
		self.debug(
			[
				'Adapt the type for setting things in the pointed variables',
				("self.",self,['PointingSetVariable'])
			]
		)
		'''

		#inits
		PointingSetVariablesList=SYS.SetList(self.PointingSetVariable)

		#debug
		self.debug(
				[
					'in the end, PointingSetVariablesList is ',
					SYS._str(PointingSetVariablesList)
				]
			)

		#/####################/#
		# Now store all this things in the outlets team
		#

		#debug
		self.debug(
				[
					'Now we team all that stuff'
				]
			)

		#get
		PointedDeriveParenterVariable=

		self.TeamDict[
			self.PointingOutTeamStr
		].manage(
				self.getManagingKeyStr(self.PointingKeyVariable),
				SYS.update(
					[('PointVariablesList',PointedValueVariablesList)],
					__PointingSetVariable,
				),
				_ValueClass=self.PointingValueClass
			)

		#map
		map(
			lambda __PointedValueVariable,__PointingSetVariable:
			,
			PointedValueVariablesList,
			PointingSetVariablesList
		)
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:92,代码来源:__init__+copy+3.py

示例3:

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import update [as 别名]
#ImportModules
import ShareYourSystem as SYS

#set the size
N=50
MyDataFrame=SYS.update(
        SYS.pandas.DataFrame(index=range(N)),
        {
          'x':SYS.numpy.random.randn(N),
          'y':SYS.numpy.random.randn(N),
          'z':SYS.numpy.random.randn(N)
        }
      )

#figure
MyFigurer=SYS.FigurerClass(
  )['#[email protected]'](
    {
        'MyDataFrame':MyDataFrame,
        'FiguringDrawVariable':
        [
          (
            '#plot',
            {
              '#liarg:#[email protected]':['MyDataFrame.x','MyDataFrame.y'],
              '#kwarg':{
                'linestyle':"",
                'marker':'o',
                'color':'b',
                'mec':'k',
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:32,代码来源:05_ExampleDoc.py

示例4: do_connect

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import update [as 别名]

#.........这里部分代码省略.........
				ConnectedOutManagementKeyStr=ConnectManagementPrefixStr+ConnectedValueVariable.ParentedTotalPathStr.replace(
						'/','_'
					)+'_'+ConnectedValueVariable.ManagementTagStr
			else:

				#alias
				ConnectedOutManagementKeyStr=self.ConnectingOutManagementKeyStr

			#/####################/#
			# Now manage
			#

			#debug
			'''
			self.debug(
				[
					'We manage out',
					('self.',self,[
						'ConnectingValueClass',
					]),
					'ConnectedOutSetVariablesList is ',
					SYS._str(ConnectedOutSetVariablesList)
				]
			)
			'''

			#manage
			if self.ConnectingValueClass!=None:
				ConnectedOutDeriveTeamer.ManagingValueClass=self.ConnectingValueClass

			#manage	
			ConnectedOutDeriveTeamer.manage(
					ConnectedOutManagementKeyStr,
					SYS.update(
						[
							('ConnectToVariable',ConnectedValueVariable),
							('ConnectFromVariable',self)
						],
						ConnectedOutSetVariablesList,
					),
				)

		#/####################/#
		# And put also the inverse in a 
		# encapsulating managed inlets in the getted variable

		#debug
		'''
		self.debug(
				[
					'Now we in team ',
					'IMPORTANT the ConnectingInTeamKeyStr is from the original connecting',
					'not the connected object',
					('self.',self,['ConnectingInTeamKeyStr'])
				]
			)
		'''

		#Check
		if self.ConnectingInTeamKeyStr=="":

			#debug
			'''
			self.debug(
				[
					'We just set the ConnectFromVariable in the ConnectedValueVariable'
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:70,代码来源:__init__+copy+4.py

示例5: do_explore

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import update [as 别名]

#.........这里部分代码省略.........
				'''

				#
				# Init
				#

				#init the ranges
				map(
					lambda __TuplesList:
					setattr(
						self,
						__TuplesList[0],
						__TuplesList[1](self)
					),
					self.ExploredRangeTuplesList
				)

				#
				# Check Children
				#

				#debug
				self.debug(
					[
						"We first check the children"
					]
				)

				#map
				map(
					lambda __Manager:
					__Manager.explore(
						_MethodStr = self.ExploringMethodStr,
						_ConditionVariable = SYS.update(
							self.ExploringConditionVariable,
							{
								"explore":getattr(
									self.__class__,
									self.ExploringMethodStr+__Manager.CoordinatedParentSingularStr
								)
							}
						) if hasattr(__Manager,self.ExploringMethodStr+__Manager.CoordinatedParentSingularStr)
						else self.ExploringConditionVariable,
						_SuccessesInt=1
					)
					if __Manager.ExploredCheckBool==False
					else None,
					self.ExploredManagersVariable
				)

				#
				# Test
				#

				#debug
				self.debug(
					[
						"Now we do the local test",
						('self.',self,[
								'ExploringMethodStr',
								'ExploredMethodStr'
							])
					]
				)

				#call
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:70,代码来源:__init__.py

示例6: do_point

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import update [as 别名]

#.........这里部分代码省略.........
			]

		#/####################/#
		# Build the OutManagementKeyStr
		#

		#Check
		if self.PointingOutManagementKeyStr=="":
			PointedOutManagementKeyStr=PointManagementPrefixStr+PointedValueVariable.ParentedTotalPathStr.replace(
					'/','_'
				)+'_'+PointedValueVariable.ManagementTagStr
		else:
			PointedOutManagementKeyStr=self.PointingOutManagementKeyStr

		#/####################/#
		# Now manage
		#

		#debug
		'''
		self.debug(
			[
				'We manage out',
				('self.',self,['PointingValueClass'])
			]
		)
		'''

		#manage
		if self.PointingValueClass!=None:

			PointedOutDeriveTeamer.manage(
					PointedOutManagementKeyStr,
					SYS.update(
						[
							('PointToVariable',PointedValueVariable),
							('PointFromVariable',self)
						],
						PointingOutSetVariablesList,
					),
					_ValueClass=self.PointingValueClass
				)
		else:

			PointedOutDeriveTeamer.manage(
					PointedOutManagementKeyStr,
					SYS.update(
						[
							('PointToVariable',PointedValueVariable),
							('PointFromVariable',self)
						],
						PointingOutSetVariablesList,
					),
				)

		#/####################/#
		# And put also the inverse in a 
		# encapsulating managed inlets in the getted variable

		#debug
		'''
		self.debug(
				[
					'Now we in team ',
					'IMPORTANT the PointingInTeamKeyStr is from the original pointing',
					'not the pointed object',
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:70,代码来源:__init__.py


注:本文中的ShareYourSystem.update方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。