{"id":42926850,"url":"https://github.com/coderefinery/planets","last_synced_at":"2026-01-30T18:10:53.320Z","repository":{"id":253562467,"uuid":"843873263","full_name":"coderefinery/planets","owner":"coderefinery","description":"A little example project we use in teaching","archived":false,"fork":false,"pushed_at":"2024-08-19T11:45:35.000Z","size":22,"stargazers_count":1,"open_issues_count":2,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-10T04:44:33.192Z","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/coderefinery.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-17T17:17:57.000Z","updated_at":"2024-08-19T11:45:39.000Z","dependencies_parsed_at":"2025-09-10T04:10:05.061Z","dependency_job_id":null,"html_url":"https://github.com/coderefinery/planets","commit_stats":null,"previous_names":["coderefinery/planets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coderefinery/planets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderefinery%2Fplanets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderefinery%2Fplanets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderefinery%2Fplanets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderefinery%2Fplanets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderefinery","download_url":"https://codeload.github.com/coderefinery/planets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderefinery%2Fplanets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28917035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T16:37:38.804Z","status":"ssl_error","status_checked_at":"2026-01-30T16:37:37.878Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-30T18:10:52.701Z","updated_at":"2026-01-30T18:10:53.314Z","avatar_url":"https://github.com/coderefinery.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# planets: A little example project we use in teaching\n\nThis is part of https://coderefinery.github.io/research-software-engineering/.\n\n\n## Purpose\n\n(...)\n\n\n## Requirements\n\n- Python (tested with Python 3.12)\n\n\n## Installation instructions\n\n(...)\n\n\n## Example\n\nThe code is written to accept **command-line arguments** to specify the number\nof planets and the number of time steps.\n\nWe first generate starting data:\n```console\n$ python generate-data.py --num-planets 10 --output-file initial.csv\n```\n\nThe generated file (initial.csv) could look like this:\n```\npx,py,pz,vx,vy,vz,mass\n-46.88,-42.51,88.33,-0.86,-0.18,0.55,6.70\n-5.29,17.09,-96.13,0.66,0.45,-0.17,3.51\n83.53,-92.83,-68.77,-0.26,-0.48,0.24,6.84\n-36.31,25.48,64.16,0.85,0.75,-0.56,1.53\n-68.38,-17.21,-97.07,0.60,0.26,0.69,6.63\n-48.37,-48.74,3.92,-0.92,-0.33,-0.93,8.60\n40.53,-75.50,44.18,-0.62,-0.31,-0.53,8.04\n-27.21,10.78,-78.82,-0.09,-0.55,-0.03,5.35\n88.42,-74.95,-45.85,0.81,0.68,0.56,5.36\n39.09,53.12,-59.54,-0.54,0.56,0.07,8.98\n```\n\nThen we can simulate their motion (in this case for 20 steps):\n```console\n$ python simulate.py --num-steps 20 \\\n                     --input-file initial.csv \\\n                     --output-file final.csv\n```\n\nThe `--output-file` (final.csv) is again a CSV file (comma-separated values)\nand contains the final positions of all planets.\n\nIt is possible to run on **multiple cores** and to **animate** the result.\nHere is an example with 100 planets:\n```console\n$ python generate-data.py --num-planets 100 --output-file initial.csv\n\n$ python simulate.py --num-steps 50 \\\n                     --input-file initial.csv \\\n                     --output-file final.csv \\\n                     --trajectories-file trajectories.npz \\\n                     --num-cores 8\n\n$ python animate.py --initial-file initial.csv \\\n                    --trajectories-file trajectories.npz \\\n                    --output-file animation.mp4\n```\n\n\n## Documentation\n\n- Tutorials covering key functionality\n- Reference documentation (e.g. API) covering all functionality\n\n\n## Authors and recommended citation\n\n(...)\n\n\n## License\n\n(...)\n\n\n## Contribution guide\n\n(...)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderefinery%2Fplanets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderefinery%2Fplanets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderefinery%2Fplanets/lists"}