Skip to content

Commit

Permalink
support covid for sarix
Browse files Browse the repository at this point in the history
  • Loading branch information
elray1 committed Nov 21, 2024
1 parent c7982f9 commit a09605f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/idmodels/sarix.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import numpy as np
import pandas as pd
from iddata.loader import FluDataLoader
from iddata.loader import DiseaseDataLoader
from iddata.utils import get_holidays
from sarix import sarix

Expand All @@ -13,8 +13,8 @@ def __init__(self, model_config):
self.model_config = model_config

def run(self, run_config):
fdl = FluDataLoader()
df = fdl.load_data(nhsn_kwargs={"as_of": run_config.ref_date},
fdl = DiseaseDataLoader()
df = fdl.load_data(nhsn_kwargs={"as_of": run_config.ref_date, "disease": run_config.disease},
sources=self.model_config.sources,
power_transform=self.model_config.power_transform)
if run_config.locations is not None:
Expand Down

0 comments on commit a09605f

Please sign in to comment.