Open ddobie opened 1 month ago
See here: https://github.com/askap-vast/vast-pipeline/blob/6209e0d7b1431068869cb917ed6c4e8501aa0c52/vast_pipeline/pipeline/new_sources.py#L431-L442
sort_values automatically sorts in ascending order, meaning that the lowest true_sigma is sorted to the top. Dropping duplicates then drops all but the top entry, i.e. the lowest.
sort_values
true_sigma
Fix is to add ascending=False to the sort_values call.
ascending=False
See here: https://github.com/askap-vast/vast-pipeline/blob/6209e0d7b1431068869cb917ed6c4e8501aa0c52/vast_pipeline/pipeline/new_sources.py#L431-L442
sort_values
automatically sorts in ascending order, meaning that the lowesttrue_sigma
is sorted to the top. Dropping duplicates then drops all but the top entry, i.e. the lowest.Fix is to add
ascending=False
to thesort_values
call.