Skip to content

Express all public API angles in degrees (v1.0.0) - #12

Merged
AleMorales merged 1 commit into
masterfrom
degrees-api
Jun 10, 2026
Merged

AleMorales merged 1 commit into
masterfrom
degrees-api

Conversation

@AleMorales

Copy link
Copy Markdown
Member

Summary

  • All user-facing functions now accept angle inputs and return angle outputs in degrees instead of radians. Internal calculations remain in radians.
  • Bumps package version to 1.0.0 (breaking change).

Affected functions

Function Changed arguments/outputs
sky inputs theta_dir, phi_dir, α, alpha_soil, beta_soil
clear_sky input lat; outputs theta, phi
daily_radiation input lat
cloudy_sky input lat; outputs theta, phi
CIE inputs θₛ, Φₛ
declination return value
day_length inputs lat, dec

All user-facing functions now accept angles as inputs and return angles
as outputs in degrees. Internal calculations remain in radians.

Affected functions: sky, clear_sky, daily_radiation, cloudy_sky, CIE,
declination, and day_length. Bumps version to 1.0.0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AleMorales
AleMorales merged commit 34d6671 into master Jun 10, 2026
1 check 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.

1 participant