winter-telescope / winterapi

API interactions for WINTER
MIT License
1 stars 1 forks source link

Reorder by default #6

Closed robertdstein closed 9 months ago

robertdstein commented 1 year ago
winter.build_schedule_locally(
    program_name=program,
    data=too_list
)

to do reordering by default, but enable the option to keep the original order. And then the user is responsible for checking things, with no reordering done on the server side.

local_schedule.sort_values(by=["filter", "validEnd"], inplace=True)
local_schedule.reset_index(inplace=True)
local_schedule.drop(columns=["index"], inplace=True)
local_schedule["obsHistID"] = range(len(local_schedule))
robertdstein commented 9 months ago

I think this is risky and I'll defer to users instead