01234567890123456789012345678901234567890123456789012345678901234567890123456789
73017302730373047305730673077308730973107311731273137314731573167317731873197320 732173227323732473257326732773287329733073317332733373347335733673377338733973407341 | <----SKIPPED LINES----> (persistent_nearby_aircraft, flight, now, json_desc_dict, persistent_path, flight_aware_error_message, flight_aware_timestamp) = ( ScanForNewFlights( persistent_nearby_aircraft, persistent_path, configuration.get('log_jsons', False), flights)) # Logging: As part of the memory instrumentation, let's track # the length of these data structures if not iteration % 1000: lengths = [len(flights), len(screen_history)] Log('Iteration: %d: object lengths: %s' % (iteration, lengths)) # because this might just be an updated instance of the previous # flight as more identifier information (squawk and or flight number) # comes in, we only want to process this if its a truly new flight new_flight_flag = ConfirmNewFlight(flight, flights) if new_flight_flag: time_new_flight_found = time.time() # Since we no longer need the memory-hogging prior persistent_path # stored on the flights, we can remove it if flights and 'persistent_path' in flights[-1]: del flights[-1]['persistent_path'] flights.append(flight) remote, servo = RefreshArduinos( remote, servo, to_remote_q, to_servo_q, to_main_q, shutdown, flights, json_desc_dict, configuration, screen_history) flight_meets_display_criteria, reason_flight_fails_criteria = ( FlightMeetsDisplayCriteria(flight, configuration, log=True)) # Initialize variables for saving in case details not populated by # later code prior to saving in pickle time_flight_message_inserted = 0 time_insight_message_inserted = 0 <----SKIPPED LINES----> |
01234567890123456789012345678901234567890123456789012345678901234567890123456789
730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342 | <----SKIPPED LINES----> (persistent_nearby_aircraft, flight, now, json_desc_dict, persistent_path, flight_aware_error_message, flight_aware_timestamp) = ( ScanForNewFlights( persistent_nearby_aircraft, persistent_path, configuration.get('log_jsons', False), flights)) # Logging: As part of the memory instrumentation, let's track # the length of these data structures if not iteration % 1000: lengths = [len(flights), len(screen_history)] Log('Iteration: %d: object lengths: %s' % (iteration, lengths)) # because this might just be an updated instance of the previous # flight as more identifier information (squawk and or flight number) # comes in, we only want to process this if its a truly new flight new_flight_flag = ConfirmNewFlight(flight, flights) if new_flight_flag: # now comes directly from the radio json time_new_flight_found = now # Since we no longer need the memory-hogging prior persistent_path # stored on the flights, we can remove it if flights and 'persistent_path' in flights[-1]: del flights[-1]['persistent_path'] flights.append(flight) remote, servo = RefreshArduinos( remote, servo, to_remote_q, to_servo_q, to_main_q, shutdown, flights, json_desc_dict, configuration, screen_history) flight_meets_display_criteria, reason_flight_fails_criteria = ( FlightMeetsDisplayCriteria(flight, configuration, log=True)) # Initialize variables for saving in case details not populated by # later code prior to saving in pickle time_flight_message_inserted = 0 time_insight_message_inserted = 0 <----SKIPPED LINES----> |