renewables 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. renewables-0.3.0/CHANGELOG.md +65 -0
  2. renewables-0.3.0/Cargo.lock +914 -0
  3. renewables-0.3.0/Cargo.toml +60 -0
  4. renewables-0.3.0/LICENSE-APACHE +201 -0
  5. renewables-0.3.0/LICENSE-MIT +21 -0
  6. renewables-0.3.0/NOTICE +112 -0
  7. renewables-0.3.0/PKG-INFO +86 -0
  8. renewables-0.3.0/README.md +181 -0
  9. renewables-0.3.0/licenses/LICENSE-APACHE +201 -0
  10. renewables-0.3.0/licenses/LICENSE-MIT +21 -0
  11. renewables-0.3.0/licenses/NOTICE +112 -0
  12. renewables-0.3.0/pyproject.toml +73 -0
  13. renewables-0.3.0/python/Cargo.toml +30 -0
  14. renewables-0.3.0/python/README.md +55 -0
  15. renewables-0.3.0/python/licenses/LICENSE-APACHE +201 -0
  16. renewables-0.3.0/python/licenses/LICENSE-MIT +21 -0
  17. renewables-0.3.0/python/licenses/NOTICE +112 -0
  18. renewables-0.3.0/python/src/lib.rs +1710 -0
  19. renewables-0.3.0/python/tests/conftest.py +17 -0
  20. renewables-0.3.0/python/tests/test_behaviour.py +263 -0
  21. renewables-0.3.0/python/tests/test_oracle.py +212 -0
  22. renewables-0.3.0/python/tests/typed_consumer.py +34 -0
  23. renewables-0.3.0/renewables/__init__.py +18 -0
  24. renewables-0.3.0/renewables/_arrays.py +106 -0
  25. renewables-0.3.0/renewables/_native.pyi +311 -0
  26. renewables-0.3.0/renewables/atmosphere.py +53 -0
  27. renewables-0.3.0/renewables/irradiance.py +175 -0
  28. renewables-0.3.0/renewables/pv.py +343 -0
  29. renewables-0.3.0/renewables/py.typed +0 -0
  30. renewables-0.3.0/renewables/quality.py +110 -0
  31. renewables-0.3.0/renewables/sun.py +207 -0
  32. renewables-0.3.0/renewables/wind.py +124 -0
  33. renewables-0.3.0/src/atmosphere.rs +130 -0
  34. renewables-0.3.0/src/error.rs +90 -0
  35. renewables-0.3.0/src/irradiance.rs +772 -0
  36. renewables-0.3.0/src/lib.rs +29 -0
  37. renewables-0.3.0/src/math.rs +167 -0
  38. renewables-0.3.0/src/pv/fit.rs +226 -0
  39. renewables-0.3.0/src/pv/horizon.rs +109 -0
  40. renewables-0.3.0/src/pv/iam.rs +73 -0
  41. renewables-0.3.0/src/pv/mod.rs +169 -0
  42. renewables-0.3.0/src/pv/performance.rs +108 -0
  43. renewables-0.3.0/src/pv/system.rs +579 -0
  44. renewables-0.3.0/src/pv/temperature.rs +85 -0
  45. renewables-0.3.0/src/quality.rs +426 -0
  46. renewables-0.3.0/src/site.rs +110 -0
  47. renewables-0.3.0/src/sun/mod.rs +256 -0
  48. renewables-0.3.0/src/sun/spa.rs +207 -0
  49. renewables-0.3.0/src/sun/spa_tables.rs +370 -0
  50. renewables-0.3.0/src/time.rs +298 -0
  51. renewables-0.3.0/src/wind.rs +395 -0
@@ -0,0 +1,65 @@
1
+ # Changelog
2
+
3
+ ## 0.3.0 (2026-12-05)
4
+
5
+ ### Added
6
+
7
+ - The Python package `renewables` (`pip install renewables`): every model of the crate
8
+ over numpy arrays and pandas time indexes, `sun.from_angles` for solar positions from
9
+ elsewhere, picklable values; typed; one abi3 wheel per platform for CPython 3.11 and
10
+ later and wheels for free-threaded 3.14t and 3.15t; tested against the crate's
11
+ reference fixtures. The crate's API is unchanged.
12
+
13
+ ## 0.2.0 (2026-12-05)
14
+
15
+ ### Added
16
+
17
+ - `pv::System::fit`, `Observation`, `Fit`: a plant's tilt, azimuth and DC size from
18
+ clear-sky measurements; deterministic; checked against pvanalytics.
19
+ - `irradiance::clear_sky_rest2`, `Rest2Atmosphere`: REST2 clear sky from aerosols, water
20
+ vapour, ozone and NO₂; checked against bsrn.
21
+ - `irradiance::yang4`, `hourly_diffuse_fraction`: YANG4 separation of one-minute GHI;
22
+ checked against bsrn.
23
+ - 41,617 reference rows.
24
+
25
+ ### Changed
26
+
27
+ - `wind::PowerCurve` is documented for forecasts and plausibility; the settlement `P_theo`
28
+ of a Redispatch claim is `bilarem::wind::CertifiedCurve`. No API change.
29
+
30
+ ## 0.1.0 (2026-12-05)
31
+
32
+ A hard cut from 0.0.1, which only reserved the name.
33
+
34
+ ### Added
35
+
36
+ - `UtcTime`, `Site`, `Surface`, `Error`: validated values; errors name the value and the
37
+ range. `From` jiff and time behind the `jiff` and `time` features.
38
+ - `sun`: NREL SPA with refraction, ΔT, incidence, apparent solar time, and
39
+ `position_during` for interval means.
40
+ - `irradiance`: extraterrestrial, Haurwitz and Ineichen clear sky, Erbs and Engerer2
41
+ (with a required `Resolution`), isotropic, Hay–Davies, HDKR and Perez, ground reflection.
42
+ - `atmosphere`: pressure, Kasten–Young airmass, IEC humid-air density, temperature and
43
+ pressure at hub height.
44
+ - `pv`: Ross, Faiman and SAPM cell temperature; physical and Martin–Ruiz IAM; PVWatts DC,
45
+ losses and inverter; `System` with several arrays, a horizon, an export limit and a
46
+ required `Grade` (`Settlement` frozen within a major version, `Forecast`);
47
+ `Weather::with_clear_sky` for Engerer2 in the forecast grade; `breakdown` for every step.
48
+ - `pv::performance_ratio`, `performance_ratio_corrected`, `weighted_cell_temperature`
49
+ (IEC 61724-1, NREL weather-corrected).
50
+ - `quality`: BSRN limits, closure and diffuse ratio; `detect_clear_sky` (Reno–Hansen,
51
+ Jordan–Hansen limits); `variability_index`.
52
+ - `wind`: `PowerCurve` with explicit cut-in and cut-out, interval means with a required
53
+ `Averaging`, `power_at_density`; `speed_at_height` with `Profile`;
54
+ `normalise_wind_speed`.
55
+ - Features `std` (default) and `libm` (`no_std`).
56
+ - 31,781 reference rows from pvlib 0.16.1, bsrn 0.2.1, pvanalytics 0.2.2, windpowerlib 0.2.2
57
+ and OpenOA 3.2, checked on every `cargo test`.
58
+
59
+ ### Removed
60
+
61
+ - `cell_temperature_noct`: use `pv::temperature::ross(poa_w_m2, t_air_c, noct_c)`.
62
+
63
+ ## 0.0.1 (2026-12-05)
64
+
65
+ - `cell_temperature_noct`: PV cell temperature by the NOCT model.