emodpy_malaria.migration.convert_json_to_bin module
-
emodpy_malaria.migration.convert_json_to_bin.check_age(age)[source]
-
emodpy_malaria.migration.convert_json_to_bin.check_ages_array(ages_years)[source]
-
class emodpy_malaria.migration.convert_json_to_bin.GenderDataType(value)[source]
Bases: Enum
An enumeration.
-
SAME_FOR_BOTH_GENDERS = 'SAME_FOR_BOTH_GENDERS'
-
ONE_FOR_EACH_GENDER = 'ONE_FOR_EACH_GENDER'
-
VECTOR_MIGRATION_BY_GENETICS = 'VECTOR_MIGRATION_BY_GENETICS'
-
class emodpy_malaria.migration.convert_json_to_bin.InterpolationTypes(value)[source]
Bases: Enum
An enumeration.
-
LINEAR_INTERPOLATION = 'LINEAR_INTERPOLATION'
-
PIECEWISE_CONSTANT = 'PIECEWISE_CONSTANT'
-
class emodpy_malaria.migration.convert_json_to_bin.MigrationTypes(value)[source]
Bases: Enum
An enumeration.
-
LOCAL_MIGRATION = 'LOCAL_MIGRATION'
-
AIR_MIGRATION = 'AIR_MIGRATION'
-
REGIONAL_MIGRATION = 'REGIONAL_MIGRATION'
-
SEA_MIGRATION = 'SEA_MIGRATION'
-
emodpy_malaria.migration.convert_json_to_bin.check_gender_data_type(gdt)[source]
-
emodpy_malaria.migration.convert_json_to_bin.check_interpolation_type(interp_type)[source]
-
emodpy_malaria.migration.convert_json_to_bin.check_migration_type(mig_type)[source]
-
emodpy_malaria.migration.convert_json_to_bin.check_in_json(fn, data, key)[source]
-
emodpy_malaria.migration.convert_json_to_bin.check_rates_size(num_ages, rd_data, key)[source]
-
emodpy_malaria.migration.convert_json_to_bin.read_json(json_fn)[source]
-
class emodpy_malaria.migration.convert_json_to_bin.SummaryData(node_count, offset_str, max_destinations_per_node)[source]
Bases: object
-
emodpy_malaria.migration.convert_json_to_bin.get_summary_data(json_data)[source]
-
emodpy_malaria.migration.convert_json_to_bin.write_bin_file(bin_fn, json_data, summary)[source]
-
emodpy_malaria.migration.convert_json_to_bin.write_bin_file_gender(bin_file, json_data, summary, rates_key)[source]
-
emodpy_malaria.migration.convert_json_to_bin.write_metadata_file(metadata_fn, mig_type, json_data, rate_data)[source]