Exemple #1
0
    def __init__(self, como_version):
        # inputs
        self.como_version = como_version

        # set up draw source factory
        self._ss_factory = SourceSinkFactory(como_version)

        # set up the dimensions we are using
        self.dimensions = self.como_version.nonfatal_dimensions
    def __init__(self, como_version, measure_id, year_id, sex_id):
        self.como_version = como_version
        self.measure_id = measure_id
        self.dimensions = self.como_version.nonfatal_dimensions
        if year_id:
            self.dimensions.simulation_index["year_id"] = year_id
        if sex_id:
            self.dimensions.simulation_index["sex_id"] = sex_id

        self._ss_factory = SourceSinkFactory(como_version)
Exemple #3
0
    def __init__(self, como_version, location_id=[], year_id=[], sex_id=[]):

        self.como_version = como_version

        # set up draw source factory
        self._ss_factory = SourceSinkFactory(como_version)

        # set up the dimensions we are using
        self.dimensions = self.como_version.nonfatal_dimensions
        if location_id:
            self.dimensions.simulation_index["location_id"] = location_id
        if year_id:
            self.dimensions.simulation_index["year_id"] = year_id
        if sex_id:
            self.dimensions.simulation_index["sex_id"] = sex_id
        self.dimensions.simulation_index["age_group_id"] = [164]
Exemple #4
0
    def __init__(self, como_version, location_id, year_id, sex_id):

        self.como_version = como_version
        self._estim_years = estimation_years_from_gbd_round_id(
            self.como_version.gbd_round_id)

        # set up draw source factory
        self._ss_factory = SourceSinkFactory(como_version)

        # set up the dimensions we are using
        self.dimensions = self.como_version.nonfatal_dimensions
        if location_id:
            self.dimensions.simulation_index["location_id"] = location_id
        if year_id:
            self.dimensions.simulation_index["year_id"] = year_id
        if sex_id:
            self.dimensions.simulation_index["sex_id"] = sex_id
        self.dimensions.simulation_index["age_group_id"] = [age.BIRTH]
Exemple #5
0
 def __init__(self, como_version, location_id, sex_id):
     self.como_version = como_version
     self._location_id = location_id
     self._sex_id = sex_id
     self._ss_factory = SourceSinkFactory(como_version)