Handles prep work, and then pushing input items into queue for each frame Does not require all frames to exist Uses 'update' mode, which assumes that most of the normal "input processing" work will be skipped
(
self)
| 399 | return True |
| 400 | |
| 401 | def update_from_frame_packet_map( |
| 402 | self): |
| 403 | """ |
| 404 | Handles prep work, and then pushing input items into queue for each frame |
| 405 | |
| 406 | Does not require all frames to exist |
| 407 | Uses 'update' mode, which assumes that most of the normal "input processing" work will |
| 408 | be skipped |
| 409 | """ |
| 410 | |
| 411 | self.__prepare_sequences(parent_input = self.input) |
| 412 | |
| 413 | if self.check_update_log_errors() is False: return |
| 414 | |
| 415 | self.try_to_commit() # 1/2 needed otherwise foreign key violation because |
| 416 | # 2/2 new sequences won't exist yet |
| 417 | |
| 418 | for frame_number, instance_list in self.input.frame_packet_map.items(): |
| 419 | input = self.__format_frame_for_update( |
| 420 | frame_number = frame_number, |
| 421 | parent_input = self.input) |
| 422 | |
| 423 | self.__push_formatted_frame_to_queue( |
| 424 | input = input) |
| 425 | |
| 426 | return True |
| 427 | |
| 428 | def __prepare_sequences( |
| 429 | self, |
no test coverage detected