Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
List of GillesPy2 species.
parameter : list
List of GillesPy2 parameters.
'''
name = args['name']
if not args['delay'] == "":
delay = args['delay']
else:
delay = None
priority = args['priority']
trigger_expression = args['triggerExpression']
initial_value = args['initialValue']
persistent = args['persistent']
use_values_from_trigger_time = args['useValuesFromTriggerTime']
trigger = EventTrigger(expression=trigger_expression, initial_value=initial_value, persistent=persistent)
assignments = list(map(lambda a: self.build_event_assignment(a, self.species, self.parameters), args['eventAssignments']))
return Event(name=name, delay=delay, assignments=assignments, priority=priority, trigger=trigger, use_values_from_trigger_time=use_values_from_trigger_time)