Skip to content

Commit

Permalink
fix: remove also from parsing ...
Browse files Browse the repository at this point in the history
  • Loading branch information
leclairm committed Nov 7, 2024
1 parent 6c877bc commit 2868b0e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/sirocco/parsing/_yaml_data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,6 @@ def convert_datetimes(cls, value) -> list[datetime]:
values = value if isinstance(value, list) else [value]
return [datetime.fromisoformat(value) for value in values]

def resolve_target_dates(self, ref_date: datetime | None) -> Iterator[datetime]:
if not self.lag and not self.date:
yield ref_date
if self.lag:
for lag in self.lag:
yield ref_date + lag
if self.date:
yield from self.date


class ConfigTask(_NamedBaseModel):
"""
Expand Down

0 comments on commit 2868b0e

Please sign in to comment.