Closed mbarton closed 2 weeks ago
In the PR above dtype
is now set at the time the dataframe is created. I did not do this as wanted to discuss here first but it would be possible at this point to raise an exception at this early stage if this dtype
allocation process fails, such as in this situation. It was occurring because the new csv generation function was randomising booleans for the closed loop measure, rather than choices.
If the csv contains the wrong types (eg True/False in this case, rather than the expect int associated with the choice), should we just reject the whole csv maybe with a useful message to say please fix and try again?
Edit
dummy_sheet.csv
to have two rows of data. Make the following edits:If treatment included insulin pump therapy (i.e. option 3 or 6 selected), was this part of a closed loop system?
1
TRUE
Upload. You should get a validation error but instead you get a crash: