Closed nv-hwoo closed 1 month ago
@dyastremsky @matthewkotila @IzzyPutterman
Talked with Ganesh and @debermudez As this PR does not change behavior of the original code as it's just fixing the potential index error, I will create another follow up ticket to discuss about this.
When preprocessing responses, if all responses are either empty or null, then the
res_outputs
andres_timestamps
will eventually be empty and will raise index out of range error. Instead of indexing 0-th and last element, check if the list is empty or not.