Skip to content

Commit

Permalink
Update weather.py
Browse files Browse the repository at this point in the history
Just added in a print statement to indicate the humidity was finished calculating.
  • Loading branch information
MDKempe committed Dec 27, 2023
1 parent a90a16d commit 8343bec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pvdeg/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get(database, id=None, geospatial=False, **kwargs):
If PVGIS, id is a tuple of (latitude, longitude) for the desired location
geospatial : (bool)
If True, initialize weather data via xarray dataset and meta data via
dask dataframe. This is useful for large scael geospatial analyses on
dask dataframe. This is useful for large scale geospatial analyses on
distributed compute systems. Geospaital analyses are only supported for
NSRDB data and locally stored h5 files that follow pvlib conventions.
**kwargs :
Expand Down Expand Up @@ -84,6 +84,7 @@ def get(database, id=None, geospatial=False, **kwargs):
if "relative_humidity" not in weather_df.columns:
print('Column "relative_humidity" not found in DataFrame. Calculating...')
weather_df = humidity._ambient(weather_df)
print('Finished calculating.')

# map meta-names as needed
for key in [*meta.keys()]:
Expand Down

0 comments on commit 8343bec

Please sign in to comment.