You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# keep only the highest for each source, rename for the daatabase
new_sources_df= (
new_sources_df
.drop_duplicates('source')
.set_index('source')
.rename(columns={'true_sigma': 'new_high_sigma'})
)
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.
Fix is to add ascending=False to the sort_values call.
The text was updated successfully, but these errors were encountered:
See here:
vast-pipeline/vast_pipeline/pipeline/new_sources.py
Lines 431 to 442 in 6209e0d
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.The text was updated successfully, but these errors were encountered: