Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"""
Write a data record for an individual:
- Arrival date
- Wait
- Service start date
- Service time
- Service end date
- Blocked
- Exit date
- Node
- Destination
- Previous class
- Queue size at arrival
- Queue size at departure
"""
record = DataRecord(individual.id_number,
individual.previous_class,
self.id_number,
individual.arrival_date,
individual.service_start_date - individual.arrival_date,
individual.service_start_date,
individual.service_end_date - individual.service_start_date,
individual.service_end_date,
individual.exit_date - individual.service_end_date,
individual.exit_date,
individual.destination,
individual.queue_size_at_arrival,
individual.queue_size_at_departure)
individual.data_records.append(record)
individual.arrival_date = False
individual.service_time = False