Пример #1
0
	def add(self,reactions='',initials='',parameters=''):
		iaa={}
		for i in self.components:
			iaa[i]=self.initials[self.components.index(i)]
		if not reactions == '':
			self.components,self.equations,self.reactions=config.import_equations(self.path+reactions,equations=self.equations,reactions=self.reactions)
		if not parameters=='':
			self.parameters=config.import_parameters(self.path+parameters,parameters=self.parameters)
		self.initials=config.import_initials(self.components,self.path+initials,initials=iaa)
Пример #2
0
	def load(self,f_reactions="reactions.config",f_parameters="parameters.config",f_initials="initials.config"):
		self.components,self.equations,self.reactions=config.import_equations(self.path+f_reactions,{},{})
		self.parameters=config.import_parameters(self.path+f_parameters,{})
		self.initials=config.import_initials(self.components,self.path+f_initials,{})