langcog / childespy

The childespy package allows you to access data in the childes-db from Python.
GNU General Public License v3.0
7 stars 2 forks source link

Improve type checking in convert_r_vector, fix conversion of db_args #1

Closed mitjanikolaus closed 4 years ago

mitjanikolaus commented 4 years ago

Use np.issubdtype() instead of isinstance() so that numpy datatypes are also recognized correctly. Further, add else statements to catch unsuccessful conversions.

JMankewitz commented 4 years ago

This looks great, thank you!