tyba-client 0.4.0__py3-none-any.whl → 0.4.2__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.
Potentially problematic release.
This version of tyba-client might be problematic. Click here for more details.
- tyba_client/forecast.py +83 -46
- tyba_client/models.py +1 -0
- {tyba_client-0.4.0.dist-info → tyba_client-0.4.2.dist-info}/METADATA +1 -1
- {tyba_client-0.4.0.dist-info → tyba_client-0.4.2.dist-info}/RECORD +6 -6
- {tyba_client-0.4.0.dist-info → tyba_client-0.4.2.dist-info}/LICENSE +0 -0
- {tyba_client-0.4.0.dist-info → tyba_client-0.4.2.dist-info}/WHEEL +0 -0
tyba_client/forecast.py
CHANGED
|
@@ -12,12 +12,15 @@ class Forecast(object):
|
|
|
12
12
|
return response.json()
|
|
13
13
|
|
|
14
14
|
def most_recent(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
self,
|
|
16
|
+
object_name: str,
|
|
17
|
+
product: str,
|
|
18
|
+
start_time: datetime,
|
|
19
|
+
end_time: datetime,
|
|
20
|
+
forecast_type=None,
|
|
21
|
+
predictions_per_hour=None,
|
|
22
|
+
prediction_lead_time_mins=None,
|
|
23
|
+
horizon_mins=None,
|
|
21
24
|
):
|
|
22
25
|
return self.get(
|
|
23
26
|
"most_recent_forecast",
|
|
@@ -27,17 +30,24 @@ class Forecast(object):
|
|
|
27
30
|
"start_time": start_time,
|
|
28
31
|
"end_time": end_time,
|
|
29
32
|
"forecast_type": forecast_type,
|
|
33
|
+
"predictions_per_hour": predictions_per_hour,
|
|
34
|
+
"prediction_lead_time_mins": prediction_lead_time_mins,
|
|
35
|
+
"horizon_mins": horizon_mins,
|
|
30
36
|
},
|
|
31
37
|
)
|
|
32
38
|
|
|
33
39
|
def most_recent_probabilistic(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
self,
|
|
41
|
+
object_name: str,
|
|
42
|
+
product: str,
|
|
43
|
+
start_time: datetime,
|
|
44
|
+
end_time: datetime,
|
|
45
|
+
quantiles: List[float],
|
|
46
|
+
forecast_type=None,
|
|
47
|
+
predictions_per_hour=None,
|
|
48
|
+
prediction_lead_time_mins=None,
|
|
49
|
+
horizon_mins=None,
|
|
50
|
+
|
|
41
51
|
):
|
|
42
52
|
return self.get(
|
|
43
53
|
"most_recent_probabilistic_forecast",
|
|
@@ -48,19 +58,25 @@ class Forecast(object):
|
|
|
48
58
|
"end_time": end_time,
|
|
49
59
|
"quantiles": quantiles,
|
|
50
60
|
"forecast_type": forecast_type,
|
|
61
|
+
"predictions_per_hour": predictions_per_hour,
|
|
62
|
+
"prediction_lead_time_mins": prediction_lead_time_mins,
|
|
63
|
+
"horizon_mins": horizon_mins,
|
|
51
64
|
},
|
|
52
65
|
)
|
|
53
66
|
|
|
54
67
|
def vintaged(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
self,
|
|
69
|
+
object_name: str,
|
|
70
|
+
product: str,
|
|
71
|
+
start_time: datetime,
|
|
72
|
+
end_time: datetime,
|
|
73
|
+
days_ago: int,
|
|
74
|
+
before_time: time,
|
|
75
|
+
exact_vintage: bool = False,
|
|
76
|
+
forecast_type=None,
|
|
77
|
+
predictions_per_hour=None,
|
|
78
|
+
prediction_lead_time_mins=None,
|
|
79
|
+
horizon_mins=None,
|
|
64
80
|
):
|
|
65
81
|
return self.get(
|
|
66
82
|
"vintaged_forecast",
|
|
@@ -73,20 +89,26 @@ class Forecast(object):
|
|
|
73
89
|
"before_time": before_time,
|
|
74
90
|
"exact_vintage": exact_vintage,
|
|
75
91
|
"forecast_type": forecast_type,
|
|
92
|
+
"predictions_per_hour": predictions_per_hour,
|
|
93
|
+
"prediction_lead_time_mins": prediction_lead_time_mins,
|
|
94
|
+
"horizon_mins": horizon_mins,
|
|
76
95
|
},
|
|
77
96
|
)
|
|
78
97
|
|
|
79
98
|
def vintaged_probabilistic(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
99
|
+
self,
|
|
100
|
+
object_name: str,
|
|
101
|
+
product: str,
|
|
102
|
+
start_time: datetime,
|
|
103
|
+
end_time: datetime,
|
|
104
|
+
quantiles: List[float],
|
|
105
|
+
days_ago: int,
|
|
106
|
+
before_time: time,
|
|
107
|
+
exact_vintage: bool = False,
|
|
108
|
+
forecast_type=None,
|
|
109
|
+
predictions_per_hour=None,
|
|
110
|
+
prediction_lead_time_mins=None,
|
|
111
|
+
horizon_mins=None,
|
|
90
112
|
):
|
|
91
113
|
return self.get(
|
|
92
114
|
"vintaged_probabilistic_forecast",
|
|
@@ -100,16 +122,22 @@ class Forecast(object):
|
|
|
100
122
|
"before_time": before_time,
|
|
101
123
|
"exact_vintage": exact_vintage,
|
|
102
124
|
"forecast_type": forecast_type,
|
|
125
|
+
"predictions_per_hour": predictions_per_hour,
|
|
126
|
+
"prediction_lead_time_mins": prediction_lead_time_mins,
|
|
127
|
+
"horizon_mins": horizon_mins,
|
|
103
128
|
},
|
|
104
129
|
)
|
|
105
130
|
|
|
106
131
|
def by_vintage(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
132
|
+
self,
|
|
133
|
+
object_name: str,
|
|
134
|
+
product: str,
|
|
135
|
+
vintage_start_time: datetime,
|
|
136
|
+
vintage_end_time: datetime,
|
|
137
|
+
forecast_type=None,
|
|
138
|
+
predictions_per_hour=None,
|
|
139
|
+
prediction_lead_time_mins=None,
|
|
140
|
+
horizon_mins=None,
|
|
113
141
|
):
|
|
114
142
|
return self.get(
|
|
115
143
|
"forecasts_by_vintage",
|
|
@@ -119,17 +147,23 @@ class Forecast(object):
|
|
|
119
147
|
"start_time": vintage_start_time,
|
|
120
148
|
"end_time": vintage_end_time,
|
|
121
149
|
"forecast_type": forecast_type,
|
|
150
|
+
"predictions_per_hour": predictions_per_hour,
|
|
151
|
+
"prediction_lead_time_mins": prediction_lead_time_mins,
|
|
152
|
+
"horizon_mins": horizon_mins,
|
|
122
153
|
},
|
|
123
154
|
)
|
|
124
155
|
|
|
125
156
|
def by_vintage_probabilistic(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
157
|
+
self,
|
|
158
|
+
object_name: str,
|
|
159
|
+
product: str,
|
|
160
|
+
quantiles: List[float],
|
|
161
|
+
vintage_start_time: datetime,
|
|
162
|
+
vintage_end_time: datetime,
|
|
163
|
+
forecast_type=None,
|
|
164
|
+
predictions_per_hour=None,
|
|
165
|
+
prediction_lead_time_mins=None,
|
|
166
|
+
horizon_mins=None,
|
|
133
167
|
):
|
|
134
168
|
return self.get(
|
|
135
169
|
"probabilistic_forecasts_by_vintage",
|
|
@@ -140,11 +174,14 @@ class Forecast(object):
|
|
|
140
174
|
"start_time": vintage_start_time,
|
|
141
175
|
"end_time": vintage_end_time,
|
|
142
176
|
"forecast_type": forecast_type,
|
|
177
|
+
"predictions_per_hour": predictions_per_hour,
|
|
178
|
+
"prediction_lead_time_mins": prediction_lead_time_mins,
|
|
179
|
+
"horizon_mins": horizon_mins,
|
|
143
180
|
},
|
|
144
181
|
)
|
|
145
182
|
|
|
146
183
|
def actuals(
|
|
147
|
-
|
|
184
|
+
self, object_name: str, product: str, start_time: datetime, end_time: datetime
|
|
148
185
|
):
|
|
149
186
|
return self.get(
|
|
150
187
|
"actuals",
|
tyba_client/models.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
LICENSE,sha256=LbMfEdjEK-IRzvCfdEBhn9UCANze0Rc7hWrQTEj_xvU,1079
|
|
2
2
|
tyba_client/__init__.py,sha256=42STGor_9nKYXumfeV5tiyD_M8VdcddX7CEexmibPBk,22
|
|
3
3
|
tyba_client/client.py,sha256=zEqlK-w4T02u8VKatIeJuBY8xDcDlTfko_9yJvBT64c,5761
|
|
4
|
-
tyba_client/forecast.py,sha256=
|
|
4
|
+
tyba_client/forecast.py,sha256=lhzTewXZNqxOmuNuBmjw_NnikObqJSSu-yLFt7qSBSM,6377
|
|
5
5
|
tyba_client/io.py,sha256=iyiQrpM1xg9XAoXlU6JvNB1uxRK77keJ8gAG-fefV2U,5783
|
|
6
|
-
tyba_client/models.py,sha256=
|
|
6
|
+
tyba_client/models.py,sha256=72ZXRHXzHt6SwPD82IFgKj66nsQVBI8ko1MrRASnRPo,17543
|
|
7
7
|
tyba_client/solar_resource.py,sha256=oUD6-qUJhiIjrHbSzSL0X4asGgU4lRBocyy0MkA3keY,3379
|
|
8
8
|
tyba_client/utils.py,sha256=n4tUBGlQIwxbLqJcQRiAIbIJA0DaLSjbAxakhukqaeE,876
|
|
9
|
-
tyba_client-0.4.
|
|
10
|
-
tyba_client-0.4.
|
|
11
|
-
tyba_client-0.4.
|
|
12
|
-
tyba_client-0.4.
|
|
9
|
+
tyba_client-0.4.2.dist-info/LICENSE,sha256=LbMfEdjEK-IRzvCfdEBhn9UCANze0Rc7hWrQTEj_xvU,1079
|
|
10
|
+
tyba_client-0.4.2.dist-info/METADATA,sha256=NOvBP1gGdiP0Jqoz9Tm1ZvGAp3Vm7DyryterR_aB5Wo,2292
|
|
11
|
+
tyba_client-0.4.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
12
|
+
tyba_client-0.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|