nismod / ukpopulation

Population and demographics projection module, developed for ITRC/MISTRAL
MIT License
13 stars 7 forks source link

Invalid/nonexistent LAD codes are silently ignored #33

Closed virgesmith closed 5 years ago

virgesmith commented 5 years ago

More a feature than a bug, but if some of the LAD codes in your request are e.g. old such as E07000097 for East Herts, which was updated to E07000242 in 2013, then ukpopulation silently returns no data for the old code. Have changed snpp.filter to raise if the result doesnt contain all the LAD codes requested. The error can also trigger if the years are not in the SNPP range, or the age/gender filters are invalid.