{"id":15442948,"url":"https://github.com/artificial-life-lab/population-dynamics","last_synced_at":"2025-10-22T10:50:58.014Z","repository":{"id":62561056,"uuid":"232339903","full_name":"artificial-life-lab/population-dynamics","owner":"artificial-life-lab","description":"Library to conduct experiments in population dynamics.","archived":false,"fork":false,"pushed_at":"2024-11-16T08:07:17.000Z","size":92,"stargazers_count":13,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-27T10:10:32.016Z","etag":null,"topics":["artificial-life","cognitive-science","lotka-volterra","lotka-volterra-equations","lotka-volterra-model","non-linear-dynamics","population-dynamics","predator-prey","predator-prey-simulations","python-3"],"latest_commit_sha":null,"homepage":"https://artificial-life-lab.github.io/population-dynamics","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/artificial-life-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":"pranjaldhole","issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-01-07T14:17:52.000Z","updated_at":"2024-12-06T01:02:20.000Z","dependencies_parsed_at":"2024-11-13T09:38:08.426Z","dependency_job_id":null,"html_url":"https://github.com/artificial-life-lab/population-dynamics","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":0.3939393939393939,"last_synced_commit":"a964a35de85d47c6e39550c87d552a4ffe73d200"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/artificial-life-lab/population-dynamics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artificial-life-lab%2Fpopulation-dynamics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artificial-life-lab%2Fpopulation-dynamics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artificial-life-lab%2Fpopulation-dynamics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artificial-life-lab%2Fpopulation-dynamics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artificial-life-lab","download_url":"https://codeload.github.com/artificial-life-lab/population-dynamics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artificial-life-lab%2Fpopulation-dynamics/sbom","scorecard":{"id":209540,"data":{"date":"2025-08-11","repo":{"name":"github.com/artificial-life-lab/population-dynamics","commit":"c20ee61f874663353aecc4a0e9e6dece044e45ef"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test_and_deploy.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_and_deploy.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/artificial-life-lab/population-dynamics/test_and_deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_and_deploy.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/artificial-life-lab/population-dynamics/test_and_deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_and_deploy.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/artificial-life-lab/population-dynamics/test_and_deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_and_deploy.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/artificial-life-lab/population-dynamics/test_and_deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test_and_deploy.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/artificial-life-lab/population-dynamics/test_and_deploy.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/test_and_deploy.yml:47","Warn: pipCommand not pinned by hash: .github/workflows/test_and_deploy.yml:48","Warn: pipCommand not pinned by hash: .github/workflows/test_and_deploy.yml:74","Warn: pipCommand not pinned by hash: .github/workflows/test_and_deploy.yml:75","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: PYSEC-2019-156 / GHSA-xp76-357g-9wqq","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T00:29:52.038Z","repository_id":62561056,"created_at":"2025-08-17T00:29:52.039Z","updated_at":"2025-08-17T00:29:52.039Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280424212,"owners_count":26328462,"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-10-22T02:00:06.515Z","response_time":63,"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":["artificial-life","cognitive-science","lotka-volterra","lotka-volterra-equations","lotka-volterra-model","non-linear-dynamics","population-dynamics","predator-prey","predator-prey-simulations","python-3"],"created_at":"2024-10-01T19:32:05.504Z","updated_at":"2025-10-22T10:50:57.979Z","avatar_url":"https://github.com/artificial-life-lab.png","language":"Python","funding_links":["https://liberapay.com/pranjaldhole"],"categories":[],"sub_categories":[],"readme":"# Population dynamics\n\n[![License](https://img.shields.io/pypi/l/causal-inference-population-dynamics.svg?color=green)](https://github.com/artificial-life-lab/population-dynamics/raw/master/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/causal-inference-population-dynamics.svg?color=green)](https://pypi.org/project/causal-inference-population-dynamics)\n[![codecov](https://codecov.io/gh/artificial-life-lab/population-dynamics/branch/master/graph/badge.svg?token=3SHJIARPOG)](https://codecov.io/gh/artificial-life-lab/population-dynamics)\n\nLibrary to conduct experiements on population dynamics.\n\n![Lotka-Volterra predator-prey system](docs/graphics/predator_prey.png)\n\n## Installation\n\n- To generate required log and results directories and setup virtual environment, run\n\n```(bash)\nbash init.sh\n```\nThis step needs to be performed only once to set up your work space.\n\n- Alternatively, you can create virtual environment manually as follows:\n\n```bash\nmkdir -p ~/venvs/population-dynamics\npython3 -m venv ~/venvs/population-dynamics\n```\n\n- Activate virtual environment\n```bash\nsource ~/venvs/population-dynamics/bin/activate\n```\n\n- Upgrade pip and setuptools\n```bash\npip install --upgrade pip setuptools\n```\n\n- install dependencies with\n```bash\npip install -r requirements.txt\n```\nAlternatively, there exists `requirements_lock.txt` to get a version of the environment that is tested by us in terms of dependencies. The downside of using this file to installing dependencies is that you might not get all the latest version of packages.\nIn case, if either or the files do not setup the environment successfully, please raise an issue.\n\n- Install `causal_inference` as a package within the environment in development setting if you want to use the repo in the development mode by running the following line\n\n```(bash)\npython setup.py develop\n```\n\n## Running the Lotka-Volterra simulation\n\n- The Lotka-Volterra simulator class exists in `repo/causal_inference/base/lv_simulator.py`.\n- The Lotka-Volterra simulation parameters are fetched from `repo/causal_inference/config.py`.\nYou can edit the `config.py` file directly to play around with the parameter values.\n\n- You can run the simulator directly from terminal by running\n\n```(bash)\npython causal_inference/base/lv_simulator.py\n```\nThis will take all the default arguments and configuration to run a simulation instance of lotka-volterra population dynamics.\n\n- The simulation statistics will be saved in the `repo/results` directory by default.\n\n## Simulation and inference\n\n- The simulation and inference methods are separately implemented in `repo/causal_inference/base/lotka_volterra/lv_system.py`.\n- Currently, this inference method is experimental and may not always converge to correct optimal parameters.\n- More work is needed to find a good approximation schema to initiate the parameters of the LV-system.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartificial-life-lab%2Fpopulation-dynamics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartificial-life-lab%2Fpopulation-dynamics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartificial-life-lab%2Fpopulation-dynamics/lists"}