Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def hasSpecies(self):
return MapList([s.name for s in self.species])def hasFixedSpecies(self):
return MapList([s.name for s in self.species_fixed])def hasSubstrates(self):
return MapList([s.name for s in self.substrates])def hasGlobalParameters(self):
return MapList(p.name for p in self.global_parameters)def hasParameters(self):
return MapList([p.name for p in self.parameters])def isParameterOf(self):
return MapList([a.name for a in self.association])def hasReagents(self):
return MapList(self.hasSubstrates() + self.hasProducts())def hasReactions(self):
return MapList([r.name for r in self.reactions])