[ad_1]
Assuming that sorted_indices contains only integers:
tmaxima = [t[i] for i in sorted_indices]
ag_maxima = [a_g[i] for i in sorted_indices]
[ad_2]
solved how to turn this python lines code into a list comprehension?
[ad_1]
Assuming that sorted_indices contains only integers:
tmaxima = [t[i] for i in sorted_indices]
ag_maxima = [a_g[i] for i in sorted_indices]
[ad_2]
solved how to turn this python lines code into a list comprehension?