domainiac 6.0.0__py3-none-any.whl → 8.0.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.
@@ -13,10 +13,12 @@ class Plant:
13
13
  price_area: str
14
14
  coordinate: Coordinate
15
15
  installed_power_MW: float
16
+ power_system_resource_type: str
16
17
 
17
18
  @classmethod
18
19
  def plants_from_df(cls, df: pd.DataFrame) -> list["Plant"]:
19
20
  plants = []
21
+
20
22
  for _, row in df.iterrows():
21
23
  plant = cls(
22
24
  plant_gsrn=row["plant_gsrn"],
@@ -26,9 +28,10 @@ class Plant:
26
28
  coordinate=Coordinate(
27
29
  latitude=row["latitude"],
28
30
  longitude=row["longitude"],
29
- altitude=0,
31
+ altitude=row["altitude"],
30
32
  ),
31
33
  installed_power_MW=row["installed_power_MW"],
34
+ power_system_resource_type=row["power_system_resource_type"],
32
35
  )
33
36
  plants.append(plant)
34
37
  return plants
@@ -51,7 +54,7 @@ class Group:
51
54
  coordinate=Coordinate(
52
55
  latitude=row["latitude"],
53
56
  longitude=row["longitude"],
54
- altitude=0,
57
+ altitude=row["altitude"],
55
58
  ),
56
59
  )
57
60
  groups.append(group)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: domainiac
3
- Version: 6.0.0
3
+ Version: 8.0.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
@@ -8,9 +8,9 @@ domainiac/managers/resource_manager.py,sha256=QMkNcrgyXLLlkCR9kg4-nFjTaYHtlsldex
8
8
  domainiac/managers/unit_manager.py,sha256=DYF-AiBHzUGZJE5XlTLcszvgIQkSzZs_s9o35l4bkVk,1219
9
9
  domainiac/modeling/__init__.py,sha256=Ac5feYZ9gVLayU1Cb1ACqOyDrmvcxoOvZuUkOeXVKf8,101
10
10
  domainiac/modeling/nwp.py,sha256=PolrBdQn8W-e1M0_pefvmLn2mr4HT0NqlYlkyCV0dds,438
11
- domainiac/modeling/plant.py,sha256=48KEcfiMk90fOAzOeI5qtf1FcGvpyBNIRmN2zvx9CLc,1699
11
+ domainiac/modeling/plant.py,sha256=FMdoBZpjvg68xmWlDdbTNVtnAjH7FH1OAz4vQgB4d5Y,1842
12
12
  domainiac/wrappers/__init__.py,sha256=vZOw9maXgVoAvudZqioD-GTPkgPI6fm7_CUELQcR_-g,43
13
13
  domainiac/wrappers/cache_wrapper.py,sha256=jDg-Lt_y-YzItyP-74tGULOxb07s_CcutmOHP1Ie00Q,355
14
- domainiac-6.0.0.dist-info/METADATA,sha256=8AxmvrHi2zk11DutGQ4qTipr6i6DNmXTtLlG8Rr8tO4,510
15
- domainiac-6.0.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
16
- domainiac-6.0.0.dist-info/RECORD,,
14
+ domainiac-8.0.0.dist-info/METADATA,sha256=uOKMhEi_on6T7sqRPSJ4ajcXgRxdZCHRCIHFPiJ44WU,510
15
+ domainiac-8.0.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
16
+ domainiac-8.0.0.dist-info/RECORD,,