{"id":50740590,"url":"https://github.com/ToFuProject/tofu","last_synced_at":"2026-06-27T19:00:59.566Z","repository":{"id":37444292,"uuid":"68123717","full_name":"ToFuProject/tofu","owner":"ToFuProject","description":"Project for an open-source python library for synthetic diagnostics and tomography for Fusion devices","archived":false,"fork":false,"pushed_at":"2026-06-09T21:51:31.000Z","size":222164,"stargazers_count":86,"open_issues_count":140,"forks_count":13,"subscribers_count":10,"default_branch":"devel","last_synced_at":"2026-06-09T23:19:13.737Z","etag":null,"topics":["conda","data-visualization","diagnostics","fusion","imas","nuclear-fusion","open-source","physics","pip","plasma","plasma-diagnostics","plasma-physics","python","ray-tracing","raytracer","science-research","synthetic-diagnostics","tokamak","tomography","toolbox"],"latest_commit_sha":null,"homepage":"https://tofuproject.github.io/tofu/index.html","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/ToFuProject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-09-13T15:56:56.000Z","updated_at":"2026-04-17T16:27:22.000Z","dependencies_parsed_at":"2025-09-19T23:25:30.836Z","dependency_job_id":"5a0508c0-dbeb-490a-b160-4889c5b9dc7a","html_url":"https://github.com/ToFuProject/tofu","commit_stats":{"total_commits":5133,"total_committers":25,"mean_commits":205.32,"dds":0.6397818040132477,"last_synced_commit":"abec61634b3cc3dbaa47f51031a57916a3b2e132"},"previous_names":[],"tags_count":152,"template":false,"template_full_name":null,"purl":"pkg:github/ToFuProject/tofu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToFuProject%2Ftofu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToFuProject%2Ftofu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToFuProject%2Ftofu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToFuProject%2Ftofu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ToFuProject","download_url":"https://codeload.github.com/ToFuProject/tofu/tar.gz/refs/heads/devel","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToFuProject%2Ftofu/sbom","scorecard":{"id":142308,"data":{"date":"2025-08-11","repo":{"name":"github.com/ToFuProject/tofu","commit":"7557869a51bf0b15fa109af1ad6fcf523aa51593"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 8 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Code-Review","score":0,"reason":"Found 0/3 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish-pypi-bdist-linux.yml:1","Warn: no topLevel permission defined: .github/workflows/publish-pypi-sdist.yml:1","Warn: no topLevel permission defined: .github/workflows/test-complete-matrix.yml:1","Warn: no topLevel permission defined: .github/workflows/test-single-linux.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":"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":"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":"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.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"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":"Vulnerabilities","score":0,"reason":"19 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-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg","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","Warn: Project is vulnerable to: PYSEC-2013-22 / GHSA-27x4-j476-jp5f","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-cx63-2mw6-8hw5","Warn: Project is vulnerable to: PYSEC-2022-43012 / GHSA-r9hx-vwmv-q579"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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/publish-pypi-bdist-linux.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/ToFuProject/tofu/publish-pypi-bdist-linux.yml/devel?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-pypi-bdist-linux.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/ToFuProject/tofu/publish-pypi-bdist-linux.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-pypi-sdist.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ToFuProject/tofu/publish-pypi-sdist.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-pypi-sdist.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/ToFuProject/tofu/publish-pypi-sdist.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-complete-matrix.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/ToFuProject/tofu/test-complete-matrix.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-complete-matrix.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/ToFuProject/tofu/test-complete-matrix.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-single-linux.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/ToFuProject/tofu/test-single-linux.yml/devel?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-single-linux.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/ToFuProject/tofu/test-single-linux.yml/devel?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/publish-pypi-sdist.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/publish-pypi-sdist.yml:29","Warn: pipCommand not pinned by hash: .github/workflows/publish-pypi-sdist.yml:30","Warn: pipCommand not pinned by hash: .github/workflows/test-complete-matrix.yml:33","Warn: pipCommand not pinned by hash: .github/workflows/test-complete-matrix.yml:34","Warn: pipCommand not pinned by hash: .github/workflows/test-complete-matrix.yml:35","Warn: pipCommand not pinned by hash: .github/workflows/test-complete-matrix.yml:46","Warn: pipCommand not pinned by hash: .github/workflows/test-single-linux.yml:27","Warn: pipCommand not pinned by hash: .github/workflows/test-single-linux.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/test-single-linux.yml:29","Warn: pipCommand not pinned by hash: .github/workflows/test-single-linux.yml:39","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of  11 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":"SAST","score":-1,"reason":"internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: non-200 OK status code: 502 Bad Gateway body: \"\u003chtml\u003e\\r\\n\u003chead\u003e\u003ctitle\u003e502 Bad Gateway\u003c/title\u003e\u003c/head\u003e\\r\\n\u003cbody\u003e\\r\\n\u003ccenter\u003e\u003ch1\u003e502 Bad Gateway\u003c/h1\u003e\u003c/center\u003e\\r\\n\u003chr\u003e\u003ccenter\u003enginx\u003c/center\u003e\\r\\n\u003c/body\u003e\\r\\n\u003c/html\u003e\\r\\n\"","details":null,"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T08:26:30.121Z","repository_id":37444292,"created_at":"2025-08-16T08:26:30.121Z","updated_at":"2025-08-16T08:26:30.121Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34864431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"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":["conda","data-visualization","diagnostics","fusion","imas","nuclear-fusion","open-source","physics","pip","plasma","plasma-diagnostics","plasma-physics","python","ray-tracing","raytracer","science-research","synthetic-diagnostics","tokamak","tomography","toolbox"],"created_at":"2026-06-10T17:00:20.108Z","updated_at":"2026-06-27T19:00:59.559Z","avatar_url":"https://github.com/ToFuProject.png","language":"Python","funding_links":[],"categories":["Tools"],"sub_categories":["Simulation and Modeling Frameworks"],"readme":"[![Build Status](https://app.travis-ci.com/ToFuProject/tofu.svg?branch=devel)](https://app.travis-ci.com/ToFuProject/tofu)\n[![Travis-CI](https://travis-ci.org/ToFuProject/tofu.svg?branch=master)](https://travis-ci.org/ToFuProject/tofu)\n[![Conda]( https://anaconda.org/conda-forge/tofu/badges/version.svg)](https://anaconda.org/conda-forge/tofu)\n[![](https://anaconda.org/conda-forge/tofu/badges/downloads.svg)](https://anaconda.org/conda-forge/tofu)\n[![](https://anaconda.org/conda-forge/tofu/badges/latest_release_date.svg)](https://anaconda.org/conda-forge/tofu)\n[![](https://anaconda.org/conda-forge/tofu/badges/platforms.svg)](https://anaconda.org/conda-forge/tofu)\n[![](https://anaconda.org/conda-forge/tofu/badges/license.svg)](https://github.com/conda-forge/tofu/blob/master/LICENSE.txt)\n[![](https://anaconda.org/conda-forge/tofu/badges/installer/conda.svg)](https://anaconda.org/conda-forge/tofu)\n[![](https://codecov.io/gh/ToFuProject/tofu/branch/master/graph/badge.svg)](https://codecov.io/gh/ToFuProject/tofu)\n[![](https://badge.fury.io/py/tofu.svg)](https://badge.fury.io/py/tofu)\n[![Gitter](https://img.shields.io/gitter/room/ToFuProject/community?style=plastic)](https://gitter.im/ToFuProject/community)\n[![PlamsaPy](https://img.shields.io/badge/Affiliated-PlasmaPy-ff2929?labelColor=435466\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAADIAAAAAQAAAMgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAA6gAwAEAAAAAQAAAA4AAAAAnETOywAAAAlwSFlzAAAewgAAHsIBbtB1PgAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAjdJREFUKBVdkk9IVFEUxs99f6bXjDNS4TRvMiHQImsRpBCZEC5clLOKZtFOIdrmzmWroM0IuotAcOlshlwpGEFkuBAM+ycFiomODE6O49x58+a+e/vu2MjQg998591zzj33fvOI/j2KyGyJjWastTXXun6aQMEtMAOWwTvwUoXDSV2cyWTO0tTUmdNGJC39An0CDkAJ7IJ94EvG1qEJWliIP5ydvU5KMV1v4FcgcRfxNCiCTVAAR2Sab5lSr2Qi8Ywcp90Soqszm22coHmX541CTIT6oEaW9ZPa2uqIx467uy/S4WHcC4WunCe6jTWyMM2FdoE84Mo0TYrHi2xvr0Clkl4vrfX350jKvorj9OAEEawRQ+M16GtQVpZFzDA4+f4S3u3iyIi5Ojj4cbi3d2hAiHtcSo7G3ZqUE9oYDxTItn1Wr1cRz9xYXHSVlMPfHaeMTfoGOL/JcQ3GWASTRUelYujGI7AvXFdY29sfxnK5oQrRi06l1u5Xqwe+EK7HGMHEdjjqKMPYeT866mlX/5Bh/EDTLxhS3gyFHrhK5QS2L0vZUyO6QIxFUReBXoKbKxhEJ65KuRxEo8ckxO8ty1rBPdalUkkUn0Ox/qJM6FXs9c0Lgje6sfHnQ7+IZLLD3NjIb9n2dMLzPpuxWFhyTrgrLGQUcP7JZuzR13Tafzw3Z2pXsYzTE8V2xsfrlycnq6n5+XDetp+i6Q7MQFItraZSjUm6KZtOB3qq/tzQe/LoRDP+X1tzfwGubPWENrTteQAAAABJRU5ErkJggg==)](https://www.plasmapy.org/affiliates/)\n[![PlamsaPy](https://img.shields.io/badge/Community-PlasmaPy-54bfbf?labelColor=435466\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAADIAAAAAQAAAMgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAA6gAwAEAAAAAQAAAA4AAAAAnETOywAAAAlwSFlzAAAewgAAHsIBbtB1PgAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAjdJREFUKBVdkk9IVFEUxs99f6bXjDNS4TRvMiHQImsRpBCZEC5clLOKZtFOIdrmzmWroM0IuotAcOlshlwpGEFkuBAM+ycFiomODE6O49x58+a+e/vu2MjQg998591zzj33fvOI/j2KyGyJjWastTXXun6aQMEtMAOWwTvwUoXDSV2cyWTO0tTUmdNGJC39An0CDkAJ7IJ94EvG1qEJWliIP5ydvU5KMV1v4FcgcRfxNCiCTVAAR2Sab5lSr2Qi8Ywcp90Soqszm22coHmX541CTIT6oEaW9ZPa2uqIx467uy/S4WHcC4WunCe6jTWyMM2FdoE84Mo0TYrHi2xvr0Clkl4vrfX350jKvorj9OAEEawRQ+M16GtQVpZFzDA4+f4S3u3iyIi5Ojj4cbi3d2hAiHtcSo7G3ZqUE9oYDxTItn1Wr1cRz9xYXHSVlMPfHaeMTfoGOL/JcQ3GWASTRUelYujGI7AvXFdY29sfxnK5oQrRi06l1u5Xqwe+EK7HGMHEdjjqKMPYeT866mlX/5Bh/EDTLxhS3gyFHrhK5QS2L0vZUyO6QIxFUReBXoKbKxhEJ65KuRxEo8ckxO8ty1rBPdalUkkUn0Ox/qJM6FXs9c0Lgje6sfHnQ7+IZLLD3NjIb9n2dMLzPpuxWFhyTrgrLGQUcP7JZuzR13Tafzw3Z2pXsYzTE8V2xsfrlycnq6n5+XDetp+i6Q7MQFItraZSjUm6KZtOB3qq/tzQe/LoRDP+X1tzfwGubPWENrTteQAAAABJRU5ErkJggg==)](https://www.plasmapy.org/affiliates/)\n[![asv](http://img.shields.io/badge/benchmarked%20by-asv-blue.svg?style=flat)](https://github.com/ToFuProject/tofu)\n\n\n\n\ntofu\n====\n\n**tofu** stands for **To**mography for **Fu**sion, it is an IMAS-compatible open-source machine-independent python library.\n\ntofu tries to take an active part in the plasma community open-source python environment, like [PlasmaPy](https://github.com/PlasmaPy/PlasmaPy), with which some degree of interoperability is being implemented.\n\nIt aims at providing the **fusion** and **plasma** community with an object-oriented, transparent and documented tool for designing **tomography diagnostics**, computing **synthetic signal** (direct problem) as well as **tomographic inversions** (inverse problem). It gives access to a full 3D description of the diagnostic geometry, thus reducing the impact of geometrical approximations on the direct and, most importantly, on the inverse problem.\n\n**tofu** is relevant for all diagnostics integrating, in a finitie field of view or along a set of lines of sight, a quantity (scalar or vector) for which the plasma can be considered transparent (e.g.: light in the visible, UV, soft and hard X-ray ranges, or electron density for interferometers).\n\n**tofu** is **command-line oriented**, for maximum flexibility and scriptability.\nThe absence of a GUI is compensated by built-in one-liners for interactive plots.\n\n\nIt has a sphinx-generated [documentation](https://tofuproject.github.io/tofu/index.html), and the code itself is hosted on [GitHub](https://github.com/ToFuProject/tofu).\n\n\n\n## Examples Gallery\n\nHere are some examples of what **tofu** can do\n\n#### Built-in one-liners for interactive camera geometry visualization\n\u003cp align=\"center\"\u003e\n\u003cimg align=\"middle\" src=\"https://github.com/ToFuProject/tofu/blob/master/README_figures/CamLOS1D_touch.png\" width=\"600\" alt=\"Built-in one-liners for interactive camera geometry visualization\"/\u003e\n\u003c/p\u003e\n\n#### ...both for 1D and 2D cameras, including the basics for multiple reflections handling\n\u003cp align=\"center\"\u003e\n\u003cimg align=\"middle\" src=\"https://github.com/ToFuProject/tofu/blob/master/README_figures/CamLOS2D_touch_refelect.png\" width=\"600\" alt=\"...both for 1D and 2D cameras, including the basics for multiple reflections handling\"/\u003e\n\u003c/p\u003e\n\n####    Built-in plotting of sinograms\n\n\u003cp align=\"center\"\u003e\n\u003cimg align=\"middle\" src=\"https://github.com/ToFuProject/tofu/blob/master/README_figures/CamLOS1D_sino.png\" width=\"600\" alt=\"Built-in plotting of sinograms\"/\u003e\n\u003c/p\u003e\n\n####    Basic magnetic field line tracing\n\n\u003cp align=\"center\"\u003e\n\u003cimg align=\"middle\" src=\"https://github.com/ToFuProject/tofu/blob/master/README_figures/MagfieldLines.png\" width=\"600\" alt=\"Basic magnetic field line tracing\"/\u003e\n\u003c/p\u003e\n\n\n####    Multiple 1d profiles interactive plotting\n\u003cp align=\"center\"\u003e\n\u003cimg align=\"middle\" src=\"https://github.com/ToFuProject/tofu/blob/master/README_figures/Plasma2D_1dneTe.png\" width=\"600\" alt=\"Multiple 1d profiles interactive plotting\"/\u003e\n\u003c/p\u003e\n\n####    Built-in basic data treatment and interactive plotting: svd and spectrograms\n\u003cp align=\"center\"\u003e\n\u003cimg align=\"middle\" src=\"https://github.com/ToFuProject/tofu/blob/master/README_figures/Plasma2D_1dneTe.png\" width=\"600\" alt=\"Built-in basic data treatment and interactive plotting: svd and spectrograms\"/\u003e\n\u003c/p\u003e\n\n\n\n**tofu** provides the user with a series of python classes for creating, handling and visualizing a diagnostic geometry, meshes and basis functions, \ngeometry matrices, pre-treating experimental data and computing tomographic inversions.\n\nEach one of these main tasks is accomplished by a dedicated module in the larger tofu package.\n\nThe geometry module is sufficient for diagnostic designing and for a synthetic diagnostic approach (i.e.: computing the integrated signal from a simulated 2D or 3D emissivity).\nThis geometry module allows in particular:\n\n* To handle linear and toroidal vaccum vessels\n* To define apertures and detectors as planar polygons of arbitrary shapes\n* To automatically compute the full Volume of Sight (VOS) in 3D of each {detector+aperture(s)} set\n* To discretise the VOS for a numerical 3D integration of a simulated emissivity in order to compute the associated signal\n\nIt is in this geometrical sense that tofu enables a synthetic diagnostic approach, it does not provide the tools for simulating the emissivity itself (that should be an input, provided by another code).\n\n\n## IMAS-compatibility\n\n\nIMAS is a standardized data structure, it comes as an extra layer on the database of any Tokamak to provide a machine-independent way of accessing scientific data.\ntofu has built-in advanced classes for handling the interface with IMAS, hold in the imas2tofu sub-package.\nIt pre-supposes, of course, that IMAS is installed and operational next to your python install, but tofu does not require IMAS to run in general.\nIf IMAS is not available, tofu will simply display a warning stating that the imas2tofu sub-package is not usable.\n\ntofu can thus easily load and handle multiple IDSs (IMAS data structure units) and provide command-line tools for exporting IMAS data to other general tofu classes (e.g.: Cameras, Plasma2D...) and for interactive plotting.\nAll tofu objects have methods to facailitate in-python-console introspection, the ``__repr__`` method is overloaded to display relevant information, an dthis is widely used to explore the data loaded from IMAS.\n\nDo you want to use **tofu** on IMAS and don't know where to start?\n[See our documetation.](https://tofuproject.github.io/tofu/installation.html#using-tofu-on-a-iter-cluster)\n\n----\n\n\n## Installing tofu\nTofu installation currently works with Python 3.10 \u0026 3.11.\n\nFor Windows installations, make sure that you've installed [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) prior to proceeding. Select the \"Desktop Development with C++\" module.\n\n**From source** (compiled on your system using pip, all platforms)\n\n   ``` pip install tofu ```\n\n**From pre-compiled binaries** (using conda, all platforms)\n\n   ``` conda install -c conda-forge tofu ```\n\n**For Developers and other platforms**\n\nClone the git repository from github\n[See our documentation.](https://tofuproject.github.io/tofu/installation.html)\n\n\n## Licensing\n\nIt is distributed under the MIT license and aims at providing the fusion\ncommunity with a transparent and modular tool for creating / designing\ndiagnostics and using them for synthetic diagnostic (direct problem)\nand tomography (inverse problem).\n\n## History\n\nIt was first created at the Max-Planck Institute for Plasma Physics (IPP)\nin Garching, Germany, by Didier Vezinet, and is now maintained, debugged\nand updated by a team of contributors.\n\n\n-----\n\n**Warning**\nThis Pypi package focuses on tomography for fusion research.\nIt uses the same name as a previous package dedicated to a testing framework\ncoupling fixtures and tests loosely, now renamed **reahl-tofu** and developped\nby Iwan Vosloo since 2006. If you ended up here looking for a web-oriented\nlibrary, you should probably redirect to the more recent\n[**reahl-tofu**](https://pypi.python.org/pypi/reahl-tofu) page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FToFuProject%2Ftofu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FToFuProject%2Ftofu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FToFuProject%2Ftofu/lists"}