Skip to content

Commit

Permalink
add automatrilize (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield authored Jul 17, 2024
1 parent 4916735 commit 4ba97e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloud_archives/pv/passiv/passiv_monthly.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def get_monthly_passiv_data(start_date: datetime, upload_to_hf: bool = True, ove

@dg.asset(
key=["pv", "passiv", "monthly_30min"],
auto_materialize_policy=dg.AutoMaterializePolicy.eager(),
partitions_def=dg.TimeWindowPartitionsDefinition(
fmt="%Y-%m",
start="2010-01",
Expand All @@ -99,6 +100,7 @@ def pv_passiv_monthly_30min(context: dg.AssetExecutionContext):

@dg.asset(
key=["pv", "passiv", "monthly_5min"],
auto_materialize_policy=dg.AutoMaterializePolicy.eager(),
partitions_def=dg.TimeWindowPartitionsDefinition(
fmt="%Y-%m",
start="2018-01",
Expand Down
2 changes: 2 additions & 0 deletions cloud_archives/pv/passiv/passiv_year.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def get_yearly_passiv_data(start_date: datetime, upload_to_hf: bool = True, over

@dg.asset(
key=["pv", "passiv", "yearly_5min"],
auto_materialize_policy=dg.AutoMaterializePolicy.eager(),
partitions_def=dg.TimeWindowPartitionsDefinition(
fmt="%Y",
start="2018",
Expand All @@ -85,6 +86,7 @@ def pv_passiv_yearly_5min(context: dg.AssetExecutionContext):

@dg.asset(
key=["pv", "passiv", "yearly_30min"],
auto_materialize_policy=dg.AutoMaterializePolicy.eager(),
partitions_def=dg.TimeWindowPartitionsDefinition(
fmt="%Y",
start="2010",
Expand Down

0 comments on commit 4ba97e7

Please sign in to comment.