{"id":41579477,"url":"https://github.com/brechmos/t2stimulate","last_synced_at":"2026-01-24T08:33:40.252Z","repository":{"id":46084039,"uuid":"193695975","full_name":"brechmos/t2stimulate","owner":"brechmos","description":"T2 Stimulated Echo Simulation and Fitting","archived":false,"fork":false,"pushed_at":"2023-09-06T13:28:25.000Z","size":101,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-22T02:55:29.677Z","etag":null,"topics":["echo","fitting-algorithm","mri","python","simulation","t2"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brechmos.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-25T11:37:27.000Z","updated_at":"2023-09-01T18:20:13.000Z","dependencies_parsed_at":"2023-01-31T01:30:50.261Z","dependency_job_id":null,"html_url":"https://github.com/brechmos/t2stimulate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/brechmos/t2stimulate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechmos%2Ft2stimulate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechmos%2Ft2stimulate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechmos%2Ft2stimulate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechmos%2Ft2stimulate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brechmos","download_url":"https://codeload.github.com/brechmos/t2stimulate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechmos%2Ft2stimulate/sbom","scorecard":{"id":251778,"data":{"date":"2025-08-11","repo":{"name":"github.com/brechmos/t2stimulate","commit":"f03eddec75f0c11d0669b2a57cf66290c987267e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/26 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":"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":"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":"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":"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/main.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/brechmos/t2stimulate/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/brechmos/t2stimulate/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/brechmos/t2stimulate/main.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.1.0 not signed: https://api.github.com/repos/brechmos/t2stimulate/releases/18277701","Warn: release artifact v0.1.0 does not have provenance: https://api.github.com/repos/brechmos/t2stimulate/releases/18277701"],"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":"Vulnerabilities","score":0,"reason":"14 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","Warn: Project is vulnerable to: PYSEC-2021-437 / GHSA-5xp3-jfq3-5q8x","Warn: Project is vulnerable to: PYSEC-2020-173 / GHSA-gpvv-69j7-gwj8","Warn: Project is vulnerable to: PYSEC-2023-228 / GHSA-mq26-g339-26xf","Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"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-17T08:38:59.196Z","repository_id":46084039,"created_at":"2025-08-17T08:38:59.196Z","updated_at":"2025-08-17T08:38:59.196Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28720821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T08:27:05.734Z","status":"ssl_error","status_checked_at":"2026-01-24T08:27:01.197Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["echo","fitting-algorithm","mri","python","simulation","t2"],"created_at":"2026-01-24T08:33:38.707Z","updated_at":"2026-01-24T08:33:40.244Z","avatar_url":"https://github.com/brechmos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===========\nT2Stimulate\n===========\n\n\n.. image:: https://img.shields.io/pypi/v/t2stimulate.svg\n        :target: https://pypi.python.org/pypi/t2stimulate\n\n.. image:: https://img.shields.io/travis/brechmos/t2stimulate.svg\n        :target: https://travis-ci.org/brechmos/t2stimulate\n\n.. image:: https://readthedocs.org/projects/t2stimulate/badge/?version=latest\n        :target: https://t2stimulate.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n\n.. image:: https://pyup.io/repos/github/brechmos/t2stimulate/shield.svg\n     :target: https://pyup.io/repos/github/brechmos/t2stimulate/\n     :alt: Updates\n\n\n\nMRI T2 decay curve simulation with imperfect refocusing pulses (non-180 degrees)\n\n\n* Free software: GNU General Public License v3\n* Documentation: https://t2stimulate.readthedocs.io.\n\n\nA T2 multi-echo decay curve in MRI is traditionally modeled as a decaying exponential with one or more exponential\ncomponents. This assumes the refocusing pulse flip angle is at or near 180 degrees, and, if not, that other\ngradients are added in as spoilers to remove the signal from stimulated echoes.\n\nThe stimulated echoes were modeled many years ago in a paper (ref) and were then implemented in simulation code and were\nfound to be sufficient to use for fitting multi-echo decay curves from non-180 degree refocussing\npulse sequences.\n\nBelow is an example of three curves of a 32 echo MRI Pulse sequence with TE=10ms and refocusing pulse\nflip angles of 180 degrees, 160 degrees and 140 degrees. The code was:\n\n.. code-block::\n\n    import matplotlib.pyplot as plt\n    import numpy as np\n\n    from t2stimulate.simulate import stimulate\n\n    # Set a couple of parameters\n    num_echoes = 32\n    tau = 5\n    T1 = 1000\n\n    te = 2*tau*np.arange(1, num_echoes+1)\n\n    curve_140 = stimulate(alpha=140 / 180 * np.pi, num_echoes=num_echoes, T1=450, T2=80, tau=tau)\n    curve_160 = stimulate(alpha=160 / 180 * np.pi, num_echoes=num_echoes, T1=450, T2=80, tau=tau)\n    curve_180 = stimulate(alpha=180 / 180 * np.pi, num_echoes=num_echoes, T1=450, T2=80, tau=tau)\n\n    plt.figure(1)\n    plt.clf()\n\n    plt.plot(te, curve_180, 'bo-')\n    plt.plot(te, curve_160, 'gd-')\n    plt.plot(te, curve_140, 'rx-')\n    plt.xlabel('TE (ms)')\n    plt.ylabel('Signal (arb)')\n    plt.grid('on')\n\n    plt.legend(['B1=180°', 'B1=160°', 'B1=140°'])\n\n    plt.axes((0.6, 0.3, 0.25, 0.3))\n\n    plt.plot(te, curve_180, 'bo-')\n    plt.plot(te, curve_160, 'gd-')\n    plt.plot(te, curve_140, 'rx-')\n    plt.xlabel('TE (ms)')\n    plt.ylabel('Signal (arb)')\n    plt.grid('on')\n    plt.xlim((200,250))\n    plt.ylim((0.03, 0.1))\n\n    plt.show()\n\nAnd the resulting plot:\n\n.. image:: https://github.com/brechmos/t2stimulate/blob/master/images/ex1.png?raw=true\n     :alt: Example image\n     :align: center\n\n\n\nFeatures\n--------\n\n* TODO\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrechmos%2Ft2stimulate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrechmos%2Ft2stimulate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrechmos%2Ft2stimulate/lists"}