Skip to content

Commit

Permalink
add tio ingestor class to ingestor session
Browse files Browse the repository at this point in the history
  • Loading branch information
danangmassandy committed Oct 9, 2024
1 parent c9f9aff commit 1c14665
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django_project/gap/models/ingestor.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def _run(self, working_dir):
from gap.ingestor.arable import ArableIngestor
from gap.ingestor.tahmo_api import TahmoAPIIngestor
from gap.ingestor.wind_borne_systems import WindBorneSystemsIngestor
from gap.ingestor.tio_shortterm import TioShortTermIngestor

ingestor = None
if self.ingestor_type == IngestorType.TAHMO:
Expand All @@ -210,6 +211,8 @@ def _run(self, working_dir):
ingestor = TahmoAPIIngestor
elif self.ingestor_type == IngestorType.WIND_BORNE_SYSTEMS_API:
ingestor = WindBorneSystemsIngestor
elif self.ingestor_type == IngestorType.TOMORROWIO:
ingestor = TioShortTermIngestor

Check warning on line 215 in django_project/gap/models/ingestor.py

View check run for this annotation

Codecov / codecov/patch

django_project/gap/models/ingestor.py#L214-L215

Added lines #L214 - L215 were not covered by tests

if ingestor:
ingestor(self, working_dir).run()
Expand Down

0 comments on commit 1c14665

Please sign in to comment.