{"id":18620490,"url":"https://github.com/simonsobs/scheduler","last_synced_at":"2025-07-27T07:08:37.504Z","repository":{"id":157560034,"uuid":"589320627","full_name":"simonsobs/scheduler","owner":"simonsobs","description":"Scheduler for SO","archived":false,"fork":false,"pushed_at":"2025-07-18T15:25:23.000Z","size":1027,"stargazers_count":0,"open_issues_count":25,"forks_count":1,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-07-18T19:50:03.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonsobs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-15T19:42:30.000Z","updated_at":"2025-07-18T15:25:25.000Z","dependencies_parsed_at":"2023-12-21T21:27:43.684Z","dependency_job_id":"fd2f0547-9bd8-498d-a057-6063122f1ef9","html_url":"https://github.com/simonsobs/scheduler","commit_stats":{"total_commits":302,"total_committers":10,"mean_commits":30.2,"dds":"0.32450331125827814","last_synced_commit":"c2d3794876e82b79dee257904e2f480767a07a81"},"previous_names":["simonsobs/scheduler-dev"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/simonsobs/scheduler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fscheduler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fscheduler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fscheduler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fscheduler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonsobs","download_url":"https://codeload.github.com/simonsobs/scheduler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fscheduler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267320257,"owners_count":24068527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T04:06:21.112Z","updated_at":"2025-07-27T07:08:37.486Z","avatar_url":"https://github.com/simonsobs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scheduler\n\n## Related Packages\n\n* [**scheduler**](https://github.com/simonsobs/scheduler) - This package. The\n  core scheduling library, a.k.a. `schedlib`.\n* [**scheduler-server**](https://github.com/simonsobs/scheduler-server) - The\n  Flask API for fetching schedules.\n* [**scheduler-web**](https://github.com/simonsobs/scheduler-web) - The web\n  front end for the scheduler.\n\n## Installation\nFirst clone this repository, and then install with pip:\n```bash\ngit@github.com:simonsobs/scheduler.git\npip install .\n```\n\nAlternatively, pip install directly from GitHub:\n```bash\npip install schedlib@git+https://github.com/simonsobs/scheduler.git\n```\n## Basic design\nThe basic task of scheduler is to take sequences of planned observations, optimize them based on observational constraint set by observer and instrument, and convert them into a series of commands to operate the telescope. To achieve this goal, the scheduler divides this task into three steps: \n1. initialize sequences of timed blocks (`Block`) which represent planned observations;\n2. apply transformations (`Rule`) to the sequences of blocks to optimize the sequence based on given constraints. An example transformation could be `sun-avoidance` which removes blocks that are too close to the sun;\n3. convert the sequence of blocks into a sequence of commands to operate the telescope.\n\nA `Policy` defines how this three-step process is orchastrated. In other words, a policy defines how sequences of `Blocks` get transformed into commands. Step 1 is implemented with `Policy.init_seq`, step 2 is implemented with `Policy.apply`, and step 3 is implemented with `Policy.seq2cmd`. Different policies can be implemented to correspond to the needs of different instruments. \n\n## Usage\n[Confluence link for instructions on setting up and using scheduler](https://simonsobs.atlassian.net/wiki/spaces/SOPS/pages/289374233/Using+Scheduler)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsobs%2Fscheduler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonsobs%2Fscheduler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsobs%2Fscheduler/lists"}