windborne 1.2.0__py3-none-any.whl → 1.2.1__py3-none-any.whl

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.
@@ -128,14 +128,14 @@ def get_gridded_forecast(variable, time=None, initialization_time=None, forecast
128
128
  variable, time = time, variable
129
129
 
130
130
  # require either time or initialization_time and forecast_hour
131
- if not time and not initialization_time and not forecast_hour:
131
+ if time is None and (initialization_time is None or forecast_hour is None):
132
132
  print("Error: you must provide either time or initialization_time and forecast_hour.")
133
133
  return
134
- elif time and (initialization_time or forecast_hour):
134
+ elif time is not None and (initialization_time is not None or forecast_hour is not None):
135
135
  print("Warning: time, initialization_time, forecast_hour all provided; using initialization_time and forecast_hour.")
136
136
 
137
137
  params = {}
138
- if initialization_time and forecast_hour:
138
+ if initialization_time is not None and forecast_hour is not None:
139
139
  params["initialization_time"] = parse_time(initialization_time, init_time_flag=True)
140
140
  params["forecast_hour"] = forecast_hour
141
141
  elif time:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: windborne
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: A Python library for interacting with WindBorne Data and Forecasts API
5
5
  Author-email: WindBorne Systems <data@windbornesystems.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -2,12 +2,12 @@ windborne/__init__.py,sha256=nRvcreJarSKLwx40adsZSbYm-pc3htE2HZJvgY0MQUA,2044
2
2
  windborne/api_request.py,sha256=wh8-LANzB62eJt699Zk3YHv4pIzwa1DIhiTJdWRp-To,11264
3
3
  windborne/cli.py,sha256=Y0oLQLqHAhGX1xCM4vpREpGAMhECM4SK87h2DkUjalU,28643
4
4
  windborne/data_api.py,sha256=sYZkcQog8RuLErfdLLa4gC8fRkAoPGNKKQJ8i6o-LTQ,33826
5
- windborne/forecasts_api.py,sha256=WZW-bXVTTIbBFQhDc7hwwMA6FCfHaX7V4Caq8W52MLA,16193
5
+ windborne/forecasts_api.py,sha256=tp0tirS91xBwv9CuScJwjNiiVhrV3fHL6U5UxAdWLXk,16266
6
6
  windborne/observation_formatting.py,sha256=c739aaun6aaYhXl5VI-SRGR-TDS355_0Bfu1t6McoiM,14993
7
7
  windborne/track_formatting.py,sha256=LaLfTyjpWoOtHmReJPLViY0MKm_iPL_5I2OB_lNvGGA,10054
8
8
  windborne/utils.py,sha256=H8gvZ4Lrr0UmLl25iMZs6NsZliCY_73Ved_rBIqxJg4,7240
9
- windborne-1.2.0.dist-info/METADATA,sha256=NptGBKui6B2Lpk5INJ_7UmWOfVxlcZXJZxblPsCqzpw,1235
10
- windborne-1.2.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
11
- windborne-1.2.0.dist-info/entry_points.txt,sha256=j_YrqdCDrCd7p5MIwQ2BYwNXEi95VNANzLRJmcXEg1U,49
12
- windborne-1.2.0.dist-info/top_level.txt,sha256=PE9Lauriu5S5REf7JKhXprufZ_V5RiZ_TnfnrLGJrmE,10
13
- windborne-1.2.0.dist-info/RECORD,,
9
+ windborne-1.2.1.dist-info/METADATA,sha256=jKnNK7Ar8N3mn9Ab1ptcim8rTX-gPD6L5w6tG_nhIzM,1235
10
+ windborne-1.2.1.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
11
+ windborne-1.2.1.dist-info/entry_points.txt,sha256=j_YrqdCDrCd7p5MIwQ2BYwNXEi95VNANzLRJmcXEg1U,49
12
+ windborne-1.2.1.dist-info/top_level.txt,sha256=PE9Lauriu5S5REf7JKhXprufZ_V5RiZ_TnfnrLGJrmE,10
13
+ windborne-1.2.1.dist-info/RECORD,,