NTD-Modelling-Consortium / ntd-model-sch

NTD SCH model
MIT License
0 stars 6 forks source link

Ensure ndarrays are 1d arrays even when just one value #72

Closed thk123 closed 2 months ago

thk123 commented 2 months ago

In particular, events.py assumes that the drug2split is a 1dimensional array, numpy converts a scalar as a 0d array. This is mainly caused by the custom file format used by the parse_coverage_input which doesn't differentiate between a single element array and a scalar value

Similarly, configuration.py assumes each MDA contains a coverage array, but if there is a single entry then this will be converted as a scalar