{"id":34552910,"url":"https://github.com/pyomeca/pyorerun","last_synced_at":"2026-01-06T16:23:51.278Z","repository":{"id":225398796,"uuid":"765815029","full_name":"pyomeca/pyorerun","owner":"pyomeca","description":"Rerun c3d files, biorbd, OpenSim models from python.","archived":false,"fork":false,"pushed_at":"2025-11-14T08:32:07.000Z","size":25074,"stargazers_count":20,"open_issues_count":9,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-14T09:25:38.598Z","etag":null,"topics":["biomechanics","bioptim","biorbd","c3d","msk-modelling","multibody-dynamics","rerun","visualization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyomeca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","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-03-01T17:09:58.000Z","updated_at":"2025-11-14T08:32:11.000Z","dependencies_parsed_at":"2024-05-22T23:31:15.761Z","dependency_job_id":"f5ad6909-4a42-4cd8-9743-ba433af4c5bc","html_url":"https://github.com/pyomeca/pyorerun","commit_stats":null,"previous_names":["pyomeca/pyorerun"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/pyomeca/pyorerun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyomeca%2Fpyorerun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyomeca%2Fpyorerun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyomeca%2Fpyorerun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyomeca%2Fpyorerun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyomeca","download_url":"https://codeload.github.com/pyomeca/pyorerun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyomeca%2Fpyorerun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27998473,"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-12-24T02:00:07.193Z","response_time":83,"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":["biomechanics","bioptim","biorbd","c3d","msk-modelling","multibody-dynamics","rerun","visualization"],"created_at":"2025-12-24T08:04:39.670Z","updated_at":"2025-12-24T08:05:16.365Z","avatar_url":"https://github.com/pyomeca.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pyorerun\n[![Maintainability](https://api.codeclimate.com/v1/badges/7e8b7eb962759cf11f38/maintainability)](https://codeclimate.com/github/pyomeca/pyorerun/maintainability) [![Maintainability](https://qlty.sh/badges/b2a2112d-ef8b-4683-9518-edc72add9630/maintainability.svg)](https://qlty.sh/gh/pyomeca/projects/pyorerun) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/pyorerun.svg)](https://anaconda.org/conda-forge/pyorerun)\n\nWe can rerun c3d files and display their original content.\nAnd also animate biorbd models from the pyomeca organization.\n\n``` conda install -c conda-forge pyorerun rerun-sdk=0.27.2```\n``` pip install trc-data-reader``` # for .trc file support\n``` conda install opensim-org::opensim   # not a mandatory dependency```\n``` conda install -c conda-forge biobuddy=0.2.0   # not a mandatory dependency```\n\n# Rerun .c3d - As simple as that\n\n``` python3\nimport pyorerun as prr\n\nprr.c3d(\"example.c3d\")\n```\n\nhttps://github.com/pyomeca/pyorerun/assets/40755537/3cdd39f6-d88d-4891-8ffd-d14c93a9c94e\n\n**NOTE**: Only handle markers, force plates, floor for now\n\n## Notebook demo\n\n\nhttps://github.com/pyomeca/pyorerun/assets/40755537/c9448d69-c891-4362-821b-68449684eb64\n\n\n\n# Rerun Biorbd Models\n\n``` python3\nfrom pyorerun import BiorbdModel, PhaseRerun\n\nnb_frames = 10\nnb_seconds = 0.1\nt_span = np.linspace(0, nb_seconds, nb_frames)\n\nmodel = BiorbdModel(\"models/Wu_Shoulder_Model_kinova_scaled_adjusted_2.bioMod\")\nq = np.zeros((model.model.nbQ(), nb_frames))\n\nviz = PhaseRerun(t_span)\nviz.add_animated_model(model, q)\nviz.rerun(\"msk_model\")\n```\n\n\nhttps://github.com/pyomeca/pyorerun/assets/40755537/9341707a-4f44-4dbd-8ece-9a16e1500e9a\n\n# Play with joint DoFs q, Live.\n``` python3\nfrom pyorerun import LiveModelAnimation\n\n\nmodel_path = \"models/Wu_Shoulder_Model_kinova_scaled_adjusted_2.bioMod\"\nanimation = LiveModelAnimation(model_path, with_q_charts=True)\nanimation.rerun()\n```\n\n## From source\n```conda install -c conda-forge ezc3d rerun-sdk=0.27.2 trimesh numpy biorbd pyomeca tk imageio imageio-ffmpeg```\n\nif you want to use the OpenSim, you also need to install separately:\n```conda install -c opensim-org::opensim```\n\nif you want to use the BioBuddy, you also need to install separately:\n```conda install -c conda-forge biobuddy=0.2.0``` or\n```pip install biobuddy==0.2.0```\n\nif you want to use the .trc file support, you also need to install separately:\n``` pip install trc-data-reader ```\n\nThen, ensure it is accessible in your Python environment by installing the package:\n\n``` pip install . ``` or ``` python setup.py install ```\n\n## On Linux\n\nRerun should work out-of-the-box on Mac and Windows, but on Linux, you need first to run:\n\n```\nsudo apt-get -y install \\\n    libclang-dev \\\n    libatk-bridge2.0 \\\n    libfontconfig1-dev \\\n    libfreetype6-dev \\\n    libglib2.0-dev \\\n    libgtk-3-dev \\\n    libssl-dev \\\n    libxcb-render0-dev \\\n    libxcb-shape0-dev \\\n    libxcb-xfixes0-dev \\\n    libxkbcommon-dev \\\n    patchelf\n```\n\n# Citing\n```\n@software{pierre_puchaud_2024_11449215,\n  author       = {Pierre Puchaud, Mickael Begon},\n  title        = {pyomeca/pyorerun: CaffeineStrips},\n  month        = jun,\n  year         = 2024,\n  publisher    = {Zenodo},\n  version      = {1.2.4},\n  doi          = {10.5281/zenodo.11449215},\n  url          = {https://doi.org/10.5281/zenodo.11449215}\n}\n```\n\n# Contributing\nContributions are welcome. I will be happy to review and help you to improve the code.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyomeca%2Fpyorerun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyomeca%2Fpyorerun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyomeca%2Fpyorerun/lists"}