Skip to content

Add rad2deg to pyrecest.backend (all backends)#1617

Merged
FlorianPfaff merged 1 commit intomainfrom
copilot/add-rad2deg-functionality
Apr 2, 2026
Merged

Add rad2deg to pyrecest.backend (all backends)#1617
FlorianPfaff merged 1 commit intomainfrom
copilot/add-rad2deg-functionality

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 2, 2026

rad2deg was missing from all three backends despite deg2rad being present. Adds it by importing directly from each framework's native library, mirroring the existing deg2rad pattern.

Changes

  • numpy backend: from numpy import rad2deg
  • pytorch backend: from torch import rad2deg
  • jax backend: from jax.numpy import rad2deg
  • main _backend/__init__.py: added "rad2deg" to the exported symbols list

Usage

from pyrecest.backend import rad2deg
rad2deg(3.141592653589793)  # → 180.0

Agent-Logs-Url: https://github.com/FlorianPfaff/PyRecEst/sessions/e57a5472-c3d9-42ea-92a4-5ee26228aacd

Co-authored-by: FlorianPfaff <6773539+FlorianPfaff@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 8.16s
✅ JSON prettier 2 0 0 0 0.47s
✅ JSON v8r 2 0 0 2.17s
✅ MARKDOWN markdownlint 1 0 0 0 0.63s
✅ MARKDOWN markdown-table-formatter 1 0 0 0 0.27s
✅ PYTHON bandit 259 0 0 3.22s
✅ PYTHON black 259 1 0 0 4.85s
✅ PYTHON flake8 259 0 0 1.84s
✅ PYTHON isort 259 1 0 0 0.5s
✅ PYTHON mypy 259 0 0 4.05s
✅ PYTHON pylint 259 0 0 74.82s
✅ PYTHON ruff 259 1 0 0 0.04s
✅ REPOSITORY checkov yes no no 21.95s
✅ REPOSITORY gitleaks yes no no 4.42s
✅ REPOSITORY git_diff yes no no 0.02s
✅ REPOSITORY secretlint yes no no 5.89s
✅ REPOSITORY syft yes no no 3.61s
✅ REPOSITORY trivy-sbom yes no no 1.64s
✅ REPOSITORY trufflehog yes no no 18.18s
✅ YAML prettier 4 0 0 0 0.47s
✅ YAML v8r 4 0 0 5.77s
✅ YAML yamllint 4 0 0 0.46s

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.4.0 --custom-flavor-setup --custom-flavor-linters PYTHON_PYLINT,PYTHON_BLACK,PYTHON_FLAKE8,PYTHON_ISORT,PYTHON_BANDIT,PYTHON_MYPY,PYTHON_RUFF,COPYPASTE_JSCPD,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_GITLEAKS,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@FlorianPfaff FlorianPfaff merged commit 96e327d into main Apr 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants