pyastroweatherio 0.76.0.dev7__tar.gz → 0.76.0.dev8__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.dev7 → pyastroweatherio-0.76.0.dev8}/PKG-INFO +1 -1
  2. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/pyastroweatherio/client.py +12 -4
  3. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/pyastroweatherio.egg-info/PKG-INFO +1 -1
  4. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/setup.py +1 -1
  5. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/LICENSE +0 -0
  6. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/README.md +0 -0
  7. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/pyastroweatherio/__init__.py +0 -0
  8. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/pyastroweatherio/const.py +0 -0
  9. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/pyastroweatherio/dataclasses.py +0 -0
  10. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/pyastroweatherio/errors.py +0 -0
  11. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/pyastroweatherio/helper_functions.py +0 -0
  12. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/pyastroweatherio.egg-info/SOURCES.txt +0 -0
  13. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/pyastroweatherio.egg-info/dependency_links.txt +0 -0
  14. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/pyastroweatherio.egg-info/requires.txt +0 -0
  15. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/pyastroweatherio.egg-info/top_level.txt +0 -0
  16. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/setup.cfg +0 -0
  17. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/tests/test_calculations.py +0 -0
  18. {pyastroweatherio-0.76.0.dev7 → pyastroweatherio-0.76.0.dev8}/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.dev7
3
+ Version: 0.76.0.dev8
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
@@ -623,18 +623,26 @@ class AstroWeather:
623
623
  return True
624
624
 
625
625
  def _test_weather_df(self) -> None:
626
- # Check main dataframe for any NaN values
626
+ # Optional columns are intentionally NaN when their source fetch failed.
627
+ # Warn about those once at fetch time; suppress per-cell noise here.
628
+ _OPTIONAL_COLUMNS = {
629
+ "gfs_lifted_index",
630
+ "gfs_cape",
631
+ "gfs_boundary_layer_height",
632
+ "gfs_visibility",
633
+ "aerosol_optical_depth",
634
+ }
635
+
627
636
  nan_locations = self._weather_df.isna()
628
637
 
629
- # Find column names and index positions of NaNs
638
+ core_cols = [c for c in nan_locations.columns if c not in _OPTIONAL_COLUMNS]
630
639
  result = [
631
640
  (index, col)
632
- for col in nan_locations.columns
641
+ for col in core_cols
633
642
  for index in nan_locations.index
634
643
  if nan_locations.at[index, col]
635
644
  ]
636
645
 
637
- # Print results
638
646
  if result:
639
647
  _LOGGER.warning("NaN in main dataframe found at:")
640
648
  for index, col in result:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyastroweatherio
3
- Version: 0.76.0.dev7
3
+ Version: 0.76.0.dev8
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.dev7",
14
+ version="0.76.0.dev8",
15
15
  license="MIT",
16
16
  description="Python Wrapper for OpenMeteo and Met.no REST API",
17
17
  long_description=" ".join(