{"id":32399201,"url":"https://github.com/espdev/csaps","last_synced_at":"2025-10-25T08:18:31.918Z","repository":{"id":22074652,"uuid":"95165988","full_name":"espdev/csaps","owner":"espdev","description":"Cubic spline approximation (smoothing)","archived":false,"fork":false,"pushed_at":"2025-09-07T21:02:38.000Z","size":2712,"stargazers_count":173,"open_issues_count":6,"forks_count":31,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-10-18T22:59:16.790Z","etag":null,"topics":["approximation","csaps","cubic-splines","python","smooth","smoothing","smoothing-splines","splines"],"latest_commit_sha":null,"homepage":"https://csaps.readthedocs.io","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/espdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-06-22T23:51:06.000Z","updated_at":"2025-10-06T03:45:58.000Z","dependencies_parsed_at":"2024-03-01T01:45:27.621Z","dependency_job_id":"246bed21-698c-4484-ac7c-e08b01d26623","html_url":"https://github.com/espdev/csaps","commit_stats":{"total_commits":268,"total_committers":4,"mean_commits":67.0,"dds":0.04104477611940294,"last_synced_commit":"6e32be8ba26ad6f1240e1bd1bd5d121e84e73d74"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/espdev/csaps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espdev%2Fcsaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espdev%2Fcsaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espdev%2Fcsaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espdev%2Fcsaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/espdev","download_url":"https://codeload.github.com/espdev/csaps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espdev%2Fcsaps/sbom","scorecard":{"id":382833,"data":{"date":"2025-08-11","repo":{"name":"github.com/espdev/csaps","commit":"f447c8e585b2cd4dd9dd55164a72f7861971cef3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"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":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yaml:70","Warn: no topLevel permission defined: .github/workflows/main.yaml:1","Warn: topLevel 'actions' permission set to 'write': .github/workflows/release.yaml:13"],"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":"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.yaml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/main.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yaml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/main.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yaml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/main.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yaml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/main.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yaml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/main.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:100: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:108: update your workflow using https://app.stepsecurity.io/secureworkflow/espdev/csaps/release.yaml/master?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 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":"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":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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.3.2 not signed: https://api.github.com/repos/espdev/csaps/releases/212642690","Warn: release artifact v1.3.1 not signed: https://api.github.com/repos/espdev/csaps/releases/212331712","Warn: release artifact v1.3.0 not signed: https://api.github.com/repos/espdev/csaps/releases/212271558","Warn: release artifact v1.2.1 not signed: https://api.github.com/repos/espdev/csaps/releases/211696208","Warn: release artifact v1.2.0 not signed: https://api.github.com/repos/espdev/csaps/releases/163204908","Warn: release artifact v1.3.2 does not have provenance: https://api.github.com/repos/espdev/csaps/releases/212642690","Warn: release artifact v1.3.1 does not have provenance: https://api.github.com/repos/espdev/csaps/releases/212331712","Warn: release artifact v1.3.0 does not have provenance: https://api.github.com/repos/espdev/csaps/releases/212271558","Warn: release artifact v1.2.1 does not have provenance: https://api.github.com/repos/espdev/csaps/releases/211696208","Warn: release artifact v1.2.0 does not have provenance: https://api.github.com/repos/espdev/csaps/releases/163204908"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yaml:61"],"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":"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":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2025-61 / GHSA-xg8h-j46f-w952","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-48p4-8xcf-vxj5","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 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"}}]},"last_synced_at":"2025-08-18T15:53:02.935Z","repository_id":22074652,"created_at":"2025-08-18T15:53:02.935Z","updated_at":"2025-08-18T15:53:02.935Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280924470,"owners_count":26414472,"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-25T02:00:06.499Z","response_time":81,"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":["approximation","csaps","cubic-splines","python","smooth","smoothing","smoothing-splines","splines"],"created_at":"2025-10-25T08:18:30.671Z","updated_at":"2025-10-25T08:18:31.912Z","avatar_url":"https://github.com/espdev.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/espdev/csaps\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/1299189/76571441-8d97e400-64c8-11ea-8c05-58850f8311a1.png\" alt=\"csaps\" width=\"400\" /\u003e\u003c/a\u003e\u003cbr\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pypi.python.org/pypi/csaps\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/csaps.svg\" alt=\"PyPI version\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://pypi.python.org/pypi/csaps\"\u003e\u003cimg src=\"https://img.shields.io/pypi/pyversions/csaps.svg\" alt=\"Supported Python versions\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/espdev/csaps\"\u003e\u003cimg src=\"https://github.com/espdev/csaps/workflows/main/badge.svg\" alt=\"GitHub Actions (Tests)\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://csaps.readthedocs.io/en/latest/?badge=latest\"\u003e\u003cimg src=\"https://readthedocs.org/projects/csaps/badge/?version=latest\" alt=\"Documentation Status\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://coveralls.io/github/espdev/csaps?branch=master\"\u003e\u003cimg src=\"https://coveralls.io/repos/github/espdev/csaps/badge.svg?branch=master\" alt=\"Coverage Status\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://choosealicense.com/licenses/mit/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/l/csaps.svg\" alt=\"License\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n**csaps** is a Python package for univariate, multivariate and n-dimensional grid data approximation using cubic smoothing splines.\nThe package can be useful in practical engineering tasks for data approximation and smoothing.\n\n## Installing\n\nUse pip for installing:\n\n```\npip install -U csaps\n```\n\nor Poetry:\n\n```\npoetry add csaps\n```\n\nThe module depends only on NumPy and SciPy. Python 3.10 or above is supported.\n\n## Simple Examples\n\nHere is a couple of examples of smoothing data.\n\nAn univariate data smoothing:\n\n```python\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nfrom csaps import csaps\n\nnp.random.seed(1234)\n\nx = np.linspace(-5., 5., 25)\ny = np.exp(-(x/2.5)**2) + (np.random.rand(25) - 0.2) * 0.3\nxs = np.linspace(x[0], x[-1], 150)\n\nys = csaps(x, y, xs, smooth=0.85)\n\nplt.plot(x, y, 'o', xs, ys, '-')\nplt.show()\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/1299189/72231304-cd774380-35cb-11ea-821d-d5662cc1eedf.png\" alt=\"univariate\" /\u003e\n\u003cp/\u003e\n\nA surface data smoothing:\n\n```python\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom mpl_toolkits.mplot3d import Axes3D\n\nfrom csaps import csaps\n\nnp.random.seed(1234)\nxdata = [np.linspace(-3, 3, 41), np.linspace(-3.5, 3.5, 31)]\ni, j = np.meshgrid(*xdata, indexing='ij')\nydata = (3 * (1 - j)**2. * np.exp(-(j**2) - (i + 1)**2)\n         - 10 * (j / 5 - j**3 - i**5) * np.exp(-j**2 - i**2)\n         - 1 / 3 * np.exp(-(j + 1)**2 - i**2))\nydata = ydata + (np.random.randn(*ydata.shape) * 0.75)\n\nydata_s = csaps(xdata, ydata, xdata, smooth=0.988)\n\nfig = plt.figure(figsize=(7, 4.5))\nax = fig.add_subplot(111, projection='3d')\nax.set_facecolor('none')\nc = [s['color'] for s in plt.rcParams['axes.prop_cycle']]\nax.plot_wireframe(j, i, ydata, linewidths=0.5, color=c[0], alpha=0.5)\nax.scatter(j, i, ydata, s=10, c=c[0], alpha=0.5)\nax.plot_surface(j, i, ydata_s, color=c[1], linewidth=0, alpha=1.0)\nax.view_init(elev=9., azim=290)\n\nplt.show()\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/1299189/72231252-7a9d8c00-35cb-11ea-8890-487b8a7dbd1d.png\" alt=\"surface\" /\u003e\n\u003cp/\u003e\n\n## Documentation\n\nMore examples of usage and the full documentation can be found at https://csaps.readthedocs.io.\n\n## Development\n\nWe use Poetry to manage the project:\n\n```\ngit clone https://github.com/espdev/csaps.git\ncd csaps\npoetry install -E docs\n```\n\nAlso, install pre-commit hooks:\n\n```\npoetry run pre-commit install\n```\n\n## Testing and Linting\n\nWe use pytest for testing and ruff/mypy for linting.\nUse `poethepoet` to run tests and linters:\n\n```\npoetry run poe test\npoetry run poe check\n```\n\n## Algorithm and Implementation\n\n**csaps** Python package is inspired by MATLAB [CSAPS](https://www.mathworks.com/help/curvefit/csaps.html) function that is an implementation of \nFortran routine SMOOTH from [PGS](http://pages.cs.wisc.edu/~deboor/pgs/) (originally written by Carl de Boor).\n\nAlso, the algothithm implementation in other languages:\n\n* [csaps-rs](https://github.com/espdev/csaps-rs) Rust ndarray/sprs based implementation\n* [csaps-cpp](https://github.com/espdev/csaps-cpp) C++11 Eigen based implementation (incomplete)\n\n## References\n\nC. de Boor, A Practical Guide to Splines, Springer-Verlag, 1978.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fespdev%2Fcsaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fespdev%2Fcsaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fespdev%2Fcsaps/lists"}