The function get_m in 03_calculation.py assumes that the two variables being collapsed are independent. For example, creating a variable describing the count of 70-74 year olds by summing counts of male 70-74 year olds and female 70-74 year olds is an appropriate usage since these are mutually exclusive.
Check the _meta_lookup.json files to make sure that this is consistently the case.
The function get_m in 03_calculation.py assumes that the two variables being collapsed are independent. For example, creating a variable describing the count of 70-74 year olds by summing counts of male 70-74 year olds and female 70-74 year olds is an appropriate usage since these are mutually exclusive.
Check the _meta_lookup.json files to make sure that this is consistently the case.