-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates 2024-11-18 - added renewable energy planning dataset and adde…
…d uk heatwork planning dataset. Made tweaks to bronze data factory adding in excel processing as well as json.
- Loading branch information
1 parent
55e0c9c
commit bba99b4
Showing
8 changed files
with
103 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
analytics_platform_dagster/assets/energy_data_assets/renewable_energy_planning.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from typing import Optional | ||
from dagster import asset, AssetExecutionContext | ||
|
||
from ...utils.variables_helper.url_links import asset_urls | ||
from ...utils.etl_patterns.bronze_factory import bronze_asset_factory | ||
|
||
@asset( | ||
name="renewable_energy_planning", | ||
group_name="energy_assets", | ||
io_manager_key="S3Parquet" | ||
) | ||
@bronze_asset_factory( | ||
url_key="renewable_energy_planning", | ||
asset_urls=asset_urls, | ||
sheet_name="REPD" | ||
) | ||
def renewable_energy_planning_bronze(context: AssetExecutionContext) -> Optional[bytes]: | ||
"""Load Renewable Energy Planing Dataset as Parquet to bronze bucket""" | ||
return None |
19 changes: 19 additions & 0 deletions
19
analytics_platform_dagster/assets/infrastructure_data_assets/uk_heat_networks.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from typing import Optional | ||
from dagster import asset, AssetExecutionContext | ||
|
||
from ...utils.variables_helper.url_links import asset_urls | ||
from ...utils.etl_patterns.bronze_factory import bronze_asset_factory | ||
|
||
@asset( | ||
name="uk_heat_networks_bronze", | ||
group_name="infrastructure_assets", | ||
io_manager_key="S3Parquet" | ||
) | ||
@bronze_asset_factory( | ||
url_key="uk_heat_networks", | ||
asset_urls=asset_urls, | ||
sheet_name="Heat Networks" | ||
) | ||
def uk_heat_networks_bronze(context: AssetExecutionContext) -> Optional[bytes]: | ||
"""Load UK Heat Network Dataset as Parquet to bronze bucket""" | ||
return None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters