{"id":20690251,"url":"https://github.com/merck/rtdpy","last_synced_at":"2025-04-22T16:55:13.906Z","repository":{"id":48306532,"uuid":"175831128","full_name":"Merck/rtdpy","owner":"Merck","description":"Residence Time Distribution modeling in Python.","archived":false,"fork":false,"pushed_at":"2021-08-02T13:11:27.000Z","size":2156,"stargazers_count":7,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T17:16:33.019Z","etag":null,"topics":["process-development","python","residence-time-distribution"],"latest_commit_sha":null,"homepage":"https://merck.github.io/rtdpy/","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/Merck.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2019-03-15T14:02:44.000Z","updated_at":"2024-04-19T18:09:42.000Z","dependencies_parsed_at":"2022-09-12T13:22:31.198Z","dependency_job_id":null,"html_url":"https://github.com/Merck/rtdpy","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Frtdpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Frtdpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Frtdpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Frtdpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Merck","download_url":"https://codeload.github.com/Merck/rtdpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250207335,"owners_count":21392454,"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","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":["process-development","python","residence-time-distribution"],"created_at":"2024-11-16T23:12:24.405Z","updated_at":"2025-04-22T16:55:13.867Z","avatar_url":"https://github.com/Merck.png","language":"Python","readme":"# rtdpy\n\nResidence Time Distribution modeling in Python.\n\n[https://merck.github.io/rtdpy](https://merck.github.io/rtdpy/)\n\n[![DOI](https://joss.theoj.org/papers/10.21105/joss.01621/status.svg)](https://doi.org/10.21105/joss.01621)\n\n## A simple example\nCreate a family of tanks in series (N-CSTRs) and analyze them\n```python\nimport matplotlib.pyplot as plt\nimport rtdpy\nfor n in [1, 2, 5, 10, 100]:\n    a = rtdpy.Ncstr(tau=1, n=n, dt=.001, time_end=5)\n    plt.plot(a.time, a.exitage, label=\"n={}\".format(n))\nplt.legend()\nplt.xlabel('Time')\nplt.ylabel('Exit Age Function')\nplt.title('Impulse Responses')\n```\n\n![N-Cstr RTDs](images/ncstr.png?raw=true \"N-Cstr RTDs\")\n\n## Installation\n```bash\npip install rtdpy\n```\n\n## Issues/Requests/Contributions\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## Testing\nTests are written using `pytest`. `numpy` and `scipy` must also be installed in the environment if using `pytest` directly. `tox` can also be used to test against Python versions 3.5, 3.6, and 3.7. See [pytest documentation](https://docs.pytest.org/en/latest/) for how to use and interpret pytest results.\n\nIt is recommended to use a virtual environment for developing/testing.\n\n```bash\ngit clone https://github.com/Merck/rtdpy.git  # or use your forked repo\ncd rtdpy\npython3 -m venv .venv\nsource .venv/bin/activate\npip install -e .  # will also install numpy and scipy dependencies\npip install pytest tox\n\n# run all tests\npytest\n\n# run tests and style check for Python versions 3.5, 3.6, and 3.7, if available.\ntox\n```\n\nAuthor: Matthew Flamm\n\nEmail: \u003cmatthew.flamm@merck.com\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerck%2Frtdpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmerck%2Frtdpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerck%2Frtdpy/lists"}