domainiac 8.0.5__tar.gz → 8.0.7__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.
- {domainiac-8.0.5 → domainiac-8.0.7}/PKG-INFO +2 -2
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/managers/masterdata_manager.py +1 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/managers/metering_manager.py +15 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/pyproject.toml +1 -1
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/__init__.py +0 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/managers/__init__.py +0 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/managers/nwp_manager.py +0 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/managers/outage_manager.py +0 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/managers/plant_manager.py +0 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/managers/resource_manager.py +0 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/managers/unit_manager.py +0 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/modeling/__init__.py +0 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/modeling/nwp.py +0 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/modeling/plant.py +0 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/wrappers/__init__.py +0 -0
- {domainiac-8.0.5 → domainiac-8.0.7}/domainiac/wrappers/cache_wrapper.py +0 -0
|
@@ -28,6 +28,7 @@ class MasterdataManager:
|
|
|
28
28
|
def _get_operational_entities(self, table: str) -> pd.DataFrame:
|
|
29
29
|
filters = {"standing_entity_state": "InOperation"}
|
|
30
30
|
df = self.db.query(table, filters=filters)
|
|
31
|
+
df = df[df["decommission_date_utc"].isna()].reset_index(drop=True)
|
|
31
32
|
return df
|
|
32
33
|
|
|
33
34
|
@typechecked
|
|
@@ -37,4 +37,19 @@ class MeteringManager:
|
|
|
37
37
|
]
|
|
38
38
|
)
|
|
39
39
|
|
|
40
|
+
# Settlement data is an aggregated production in the interval [t, t+1],
|
|
41
|
+
# therefore there is a timeshift of half the resolution. The data is
|
|
42
|
+
# then interpolated to a production at hourly timestamps XX:00
|
|
43
|
+
|
|
44
|
+
df = pdz.shift_time(df, on="time_utc", period=pd.Timedelta(minutes=30))
|
|
45
|
+
df = pdz.resample(
|
|
46
|
+
df, on="time_utc", resolution=pd.Timedelta(minutes=30)
|
|
47
|
+
).interpolate()
|
|
48
|
+
# Because of interpolation, the GSRN for the new points is NAN,
|
|
49
|
+
# they have to be backfilled with proper values
|
|
50
|
+
df["datahub_gsrn_e18"] = datahub_gsrn
|
|
51
|
+
|
|
52
|
+
df = df.drop(df[df["time_utc"].dt.minute != 0].index)
|
|
53
|
+
df = df.reset_index().drop("index", axis=1)
|
|
54
|
+
|
|
40
55
|
return df
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|