Quantipy / quantipy

Python for people data
MIT License
66 stars 14 forks source link

Ascribe coding fails if meta only has one code in code frame #1338

Closed AndersFreund closed 3 years ago

AndersFreund commented 3 years ago

This line: https://github.com/Quantipy/quantipy/blob/5dd5fdb66fa222d869467c9e88b30afaef3c8753/quantipy/core/tools/dp/ascribe/reader.py#L55

Usually var['Answers']['Answer'] is a list of Dictionaries, but if only one code it returns a Dictionary.

nitsrek commented 3 years ago

fixed