pyastroweatherio 0.76.0.dev1__tar.gz → 0.76.0.dev2__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 (18) hide show
  1. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/PKG-INFO +1 -1
  2. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/pyastroweatherio/helper_functions.py +10 -3
  3. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/pyastroweatherio.egg-info/PKG-INFO +1 -1
  4. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/setup.py +1 -1
  5. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/LICENSE +0 -0
  6. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/README.md +0 -0
  7. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/pyastroweatherio/__init__.py +0 -0
  8. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/pyastroweatherio/client.py +0 -0
  9. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/pyastroweatherio/const.py +0 -0
  10. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/pyastroweatherio/dataclasses.py +0 -0
  11. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/pyastroweatherio/errors.py +0 -0
  12. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/pyastroweatherio.egg-info/SOURCES.txt +0 -0
  13. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/pyastroweatherio.egg-info/dependency_links.txt +0 -0
  14. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/pyastroweatherio.egg-info/requires.txt +0 -0
  15. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/pyastroweatherio.egg-info/top_level.txt +0 -0
  16. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/setup.cfg +0 -0
  17. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/tests/test_calculations.py +0 -0
  18. {pyastroweatherio-0.76.0.dev1 → pyastroweatherio-0.76.0.dev2}/tests/test_client.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyastroweatherio
3
- Version: 0.76.0.dev1
3
+ Version: 0.76.0.dev2
4
4
  Summary: Python Wrapper for OpenMeteo and Met.no REST API
5
5
  Home-page: https://github.com/mawinkler/pyastroweatherio
6
6
  Author: Markus Winkler
@@ -529,6 +529,11 @@ class AtmosphericRoutines:
529
529
  on the log-scale, centred at 600 m:
530
530
  pbl_pen = sigmoid((log10(pbl) − log10(600)) / 0.35)
531
531
 
532
+ Wind weight is intentionally reduced to 5 % in this path because PBL
533
+ height already captures boundary-layer stability; keeping the full
534
+ surface-wind penalty would double-count the same physics and
535
+ over-penalise moderate winds (e.g. 6–8 m/s) on otherwise stable nights.
536
+
532
537
  Without PBL data the function falls back to a surface-only heuristic:
533
538
 
534
539
  Penalty Weight Model
@@ -617,10 +622,12 @@ class AtmosphericRoutines:
617
622
  pass
618
623
 
619
624
  if pbl is not None:
620
- # PBL-aware path: boundary layer height dominates (60 %), surface
621
- # corrections for wind and humidity provide the remaining 40 %.
625
+ # PBL-aware path: boundary layer height dominates (60 %).
626
+ # Wind weight is reduced to 5 % because PBL height already encodes
627
+ # boundary-layer stability — the surface wind penalty would otherwise
628
+ # double-count the same physics and over-penalise moderate winds.
622
629
  pbl_pen = self._sigmoid((math.log10(pbl) - math.log10(600.0)) / 0.35)
623
- quality = 1.0 - 0.60 * pbl_pen - 0.15 * wind_pen - 0.15 * humid_pen - 0.10 * cloud_pen
630
+ quality = 1.0 - 0.60 * pbl_pen - 0.05 * wind_pen - 0.25 * humid_pen - 0.10 * cloud_pen
624
631
  else:
625
632
  # Surface-only fallback
626
633
  quality = 1.0 - 0.35 * wind_pen - 0.25 * humid_pen - 0.10 * cloud_pen - 0.20 * dry_pen
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyastroweatherio
3
- Version: 0.76.0.dev1
3
+ Version: 0.76.0.dev2
4
4
  Summary: Python Wrapper for OpenMeteo and Met.no REST API
5
5
  Home-page: https://github.com/mawinkler/pyastroweatherio
6
6
  Author: Markus Winkler
@@ -11,7 +11,7 @@ if os.path.isfile(requirement_path):
11
11
  setup(
12
12
  name="pyastroweatherio",
13
13
  packages=["pyastroweatherio"],
14
- version="0.76.0.dev1",
14
+ version="0.76.0.dev2",
15
15
  license="MIT",
16
16
  description="Python Wrapper for OpenMeteo and Met.no REST API",
17
17
  long_description=" ".join(