domainiac 9.0.4__py3-none-any.whl → 9.1.0__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.
- domainiac/functions/interpolation.py +1 -0
- domainiac/functions/temperature.py +5 -1
- domainiac/functions/wind.py +5 -1
- domainiac/managers/nwp_manager.py +5 -1
- {domainiac-9.0.4.dist-info → domainiac-9.1.0.dist-info}/METADATA +6 -2
- {domainiac-9.0.4.dist-info → domainiac-9.1.0.dist-info}/RECORD +7 -7
- {domainiac-9.0.4.dist-info → domainiac-9.1.0.dist-info}/WHEEL +0 -0
|
@@ -23,8 +23,12 @@ def interpolate_temperature(times: pd.Series, temperature: pd.Series) -> RealFun
|
|
|
23
23
|
|
|
24
24
|
f = interpolate.make_interp_spline(x, y, k=1)
|
|
25
25
|
|
|
26
|
+
bounds = (x.min(), x.max())
|
|
27
|
+
|
|
26
28
|
def estimate(times: pd.Series) -> NDArray[np.float64]:
|
|
27
29
|
x = conversions.datetime_to_float(times)
|
|
28
|
-
|
|
30
|
+
y = f(x)
|
|
31
|
+
y[(x < bounds[0]) | (x > bounds[1])] = np.nan
|
|
32
|
+
return y
|
|
29
33
|
|
|
30
34
|
return estimate
|
domainiac/functions/wind.py
CHANGED
|
@@ -25,8 +25,12 @@ def interpolate_wind_components(
|
|
|
25
25
|
|
|
26
26
|
f = interpolate.make_interp_spline(x, y, k=1)
|
|
27
27
|
|
|
28
|
+
bounds = (x.min(), x.max())
|
|
29
|
+
|
|
28
30
|
def estimate(times: pd.Series) -> NDArray[np.float64]:
|
|
29
31
|
x = conversions.datetime_to_float(times)
|
|
30
|
-
|
|
32
|
+
y = f(x)
|
|
33
|
+
y[(x < bounds[0]) | (x > bounds[1]), :] = np.nan
|
|
34
|
+
return y
|
|
31
35
|
|
|
32
36
|
return estimate
|
|
@@ -195,7 +195,11 @@ class NWPManager:
|
|
|
195
195
|
df_interpolated["time_utc"]
|
|
196
196
|
)
|
|
197
197
|
|
|
198
|
-
#
|
|
198
|
+
# remove nan values from the interpolated data
|
|
199
|
+
# (for example when data has been extrapolated)
|
|
200
|
+
df = df_interpolated.dropna(subset=column_names)
|
|
201
|
+
|
|
202
|
+
# remove values outside the original time interval
|
|
199
203
|
df_interpolated = df_interpolated[
|
|
200
204
|
df_interpolated["time_utc"].between(
|
|
201
205
|
df["time_utc"].min(), df["time_utc"].max()
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: domainiac
|
|
3
|
-
Version: 9.0
|
|
3
|
+
Version: 9.1.0
|
|
4
4
|
Summary: Package for working with Energinet data, but with specialized functions used for Enigma.
|
|
5
5
|
Author: Team Enigma
|
|
6
6
|
Author-email: gridop-enigma@energinet.dk
|
|
7
|
-
Requires-Python: >=3.10,<
|
|
7
|
+
Requires-Python: >=3.10,<4.0
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
10
14
|
Requires-Dist: datamazing (>=5.0.2,<6.0.0)
|
|
11
15
|
Requires-Dist: pandas (>=2.2.0,<3.0.0)
|
|
12
16
|
Requires-Dist: pvlib (>=0.13.1,<0.14.0)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
domainiac/__init__.py,sha256=Wuix4jscZD4sy7YB0RAedAo_eiRW5AcPlef58lKvg6s,207
|
|
2
2
|
domainiac/functions/__init__.py,sha256=ZHNbj1aWRnUgM6TAlQqGLv2r-GdAvoaTrPIin1w5Dk0,137
|
|
3
3
|
domainiac/functions/conversions.py,sha256=RZU5cpHD4uBHeqFfiFplJCv5gN-xzEHvQCKrizi1hMA,490
|
|
4
|
-
domainiac/functions/interpolation.py,sha256=
|
|
4
|
+
domainiac/functions/interpolation.py,sha256=qj-sTEbez_IcXLY7eOS_KqAAd8GbhP5JBkdWrUPjWIQ,3720
|
|
5
5
|
domainiac/functions/solar.py,sha256=nU9ivDLA4gE0CTMttCb_7ztoQUQicWNe_11ZqVC7d-Y,2249
|
|
6
|
-
domainiac/functions/temperature.py,sha256
|
|
6
|
+
domainiac/functions/temperature.py,sha256=-t_zWYIhYwJpyZEQgwxgR9SkeYAAjvb6qeV8LtDtfmk,940
|
|
7
7
|
domainiac/functions/typing.py,sha256=gOvHUYIWSEv_aMttY1nMEyh-pdQKMJ8O31x9y47-U5U,229
|
|
8
|
-
domainiac/functions/wind.py,sha256=
|
|
8
|
+
domainiac/functions/wind.py,sha256=ZOxSMxjWV7LZsAQVW5Y-GPMhZzfvIsh3NOtSXB5lUAY,993
|
|
9
9
|
domainiac/managers/__init__.py,sha256=7N-iEsFidupPi1u3EURfeWAoQ-NdrzAwR13faA_VWUs,298
|
|
10
10
|
domainiac/managers/masterdata_manager.py,sha256=_xIHEWVYssdvC2VMujvR0ANXCI_Er3qOlfAX427yimk,2298
|
|
11
11
|
domainiac/managers/metering_manager.py,sha256=MauMncY_yaVPx8Y9CCD8nJiE1BGHFKTVC1bOtiyl2pI,1701
|
|
12
|
-
domainiac/managers/nwp_manager.py,sha256=
|
|
12
|
+
domainiac/managers/nwp_manager.py,sha256=rEN9HmDe01N5QzePGsUorWgmOuY7t9vMwBF1Kuuu_38,8603
|
|
13
13
|
domainiac/managers/outage_manager.py,sha256=rH4NYY0hiD51V6SadVgtIOX0qCjG2cSZ60F9lDjkJ8o,1416
|
|
14
14
|
domainiac/managers/plant_manager.py,sha256=aqJ04QB-QI83zIllQiyTrlh_SKR6CYI4bY4z4RlBL3g,5083
|
|
15
15
|
domainiac/managers/resource_manager.py,sha256=QMkNcrgyXLLlkCR9kg4-nFjTaYHtlsldex-b_8lAmO0,3730
|
|
@@ -19,6 +19,6 @@ domainiac/modeling/nwp.py,sha256=PolrBdQn8W-e1M0_pefvmLn2mr4HT0NqlYlkyCV0dds,438
|
|
|
19
19
|
domainiac/modeling/plant.py,sha256=Y0_Q6V6Lj3irJh5z-49r5gFJdD4Xl_pfHIMUhdaJVUI,2226
|
|
20
20
|
domainiac/wrappers/__init__.py,sha256=vZOw9maXgVoAvudZqioD-GTPkgPI6fm7_CUELQcR_-g,43
|
|
21
21
|
domainiac/wrappers/cache_wrapper.py,sha256=jDg-Lt_y-YzItyP-74tGULOxb07s_CcutmOHP1Ie00Q,355
|
|
22
|
-
domainiac-9.0.
|
|
23
|
-
domainiac-9.0.
|
|
24
|
-
domainiac-9.0.
|
|
22
|
+
domainiac-9.1.0.dist-info/METADATA,sha256=EQ_ACirIcY9uHKqnqXtsTg6wiQibIy6y8KwCiW9SyRc,792
|
|
23
|
+
domainiac-9.1.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
24
|
+
domainiac-9.1.0.dist-info/RECORD,,
|
|
File without changes
|