pyastroweatherio 0.76.0.dev5__tar.gz → 0.76.0.dev7__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.dev5 → pyastroweatherio-0.76.0.dev7}/PKG-INFO +1 -1
  2. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/pyastroweatherio/client.py +6 -0
  3. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/pyastroweatherio/dataclasses.py +6 -0
  4. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/pyastroweatherio.egg-info/PKG-INFO +1 -1
  5. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/setup.py +1 -1
  6. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/LICENSE +0 -0
  7. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/README.md +0 -0
  8. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/pyastroweatherio/__init__.py +0 -0
  9. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/pyastroweatherio/const.py +0 -0
  10. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/pyastroweatherio/errors.py +0 -0
  11. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/pyastroweatherio/helper_functions.py +0 -0
  12. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/pyastroweatherio.egg-info/SOURCES.txt +0 -0
  13. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/pyastroweatherio.egg-info/dependency_links.txt +0 -0
  14. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/pyastroweatherio.egg-info/requires.txt +0 -0
  15. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/pyastroweatherio.egg-info/top_level.txt +0 -0
  16. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/setup.cfg +0 -0
  17. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/tests/test_calculations.py +0 -0
  18. {pyastroweatherio-0.76.0.dev5 → pyastroweatherio-0.76.0.dev7}/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.dev5
3
+ Version: 0.76.0.dev7
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
@@ -140,6 +140,9 @@ class AstroWeather:
140
140
  # Weather data
141
141
  self._weather_df = None
142
142
 
143
+ # Whether GFS supplementary data was available in the last update
144
+ self._has_gfs_data: bool = False
145
+
143
146
  # Forecast data
144
147
  self._forecast_data = None
145
148
 
@@ -347,9 +350,11 @@ class AstroWeather:
347
350
  # Merge GFS supplementary data (lifted_index, cape, boundary_layer_height, visibility)
348
351
  if weather_df_gfs is not None:
349
352
  self._weather_df = self._weather_df.merge(weather_df_gfs, on="time", how="left")
353
+ self._has_gfs_data = True
350
354
  else:
351
355
  for col in ("gfs_lifted_index", "gfs_cape", "gfs_boundary_layer_height", "gfs_visibility"):
352
356
  self._weather_df[col] = float("nan")
357
+ self._has_gfs_data = False
353
358
 
354
359
  # Merge CAMS AOD data (aerosol optical depth)
355
360
  if weather_df_aod is not None:
@@ -700,6 +705,7 @@ class AstroWeather:
700
705
  "night_duration_astronomical": await self._astro_routines.night_duration_astronomical(),
701
706
  "deepsky_forecast": await self._get_deepsky_forecast(),
702
707
  "condition_data": await self._get_condition(now),
708
+ "gfs_supplementary_data": self._has_gfs_data,
703
709
  # Uptonight objects
704
710
  "uptonight": await self._get_deepsky_objects(),
705
711
  "uptonight_bodies": await self._get_bodies(),
@@ -475,6 +475,7 @@ class LocationDataModel(TypedDict):
475
475
  night_duration_astronomical: float
476
476
  deepsky_forecast: list
477
477
  condition_data: ConditionData
478
+ gfs_supplementary_data: bool
478
479
  uptonight: list
479
480
  uptonight_bodies: list
480
481
  uptonight_comets: list
@@ -495,6 +496,7 @@ class LocationData:
495
496
  self.night_duration_astronomical = data["night_duration_astronomical"]
496
497
  self.deepsky_forecast = data["deepsky_forecast"]
497
498
  self.condition_data = data["condition_data"]
499
+ self.gfs_supplementary_data = data["gfs_supplementary_data"]
498
500
  self._uptonight = data["uptonight"]
499
501
  self._uptonight_bodies = data["uptonight_bodies"]
500
502
  self._uptonight_comets = data["uptonight_comets"]
@@ -1115,6 +1117,10 @@ class ForecastData:
1115
1117
  def precipitation_amount6(self) -> float:
1116
1118
  return self.condition_data.precipitation_amount6
1117
1119
 
1120
+ @property
1121
+ def moon_illuminance(self) -> float:
1122
+ return self.condition_data.moon_illuminance
1123
+
1118
1124
 
1119
1125
  class NightlyConditionsDataModel(TypedDict):
1120
1126
  """Model for nightly conditions data"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyastroweatherio
3
- Version: 0.76.0.dev5
3
+ Version: 0.76.0.dev7
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.dev5",
14
+ version="0.76.0.dev7",
15
15
  license="MIT",
16
16
  description="Python Wrapper for OpenMeteo and Met.no REST API",
17
17
  long_description=" ".join(