You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So you pass out the columnIndex and columnName to let the user branch in his function to dispatch to different columns? This looks ugly, and may incur code duplication, e.g. two different csv, with col-1, col-2 swapped:
Why not use the Python dictionary format, and let the Mir do such branching in the library?
Example in D can just follow the Python api:
double cvtr1(string str) {return ...;}
double cvtr2(string str) {return ...;}
data1 = mir.genfromtxt("data1.csv", ..., [1: cvtr1, 2: cvtr2]); // D does not have named arg yet, let just use positional arg
data2 = mir.genfromtxt("data2.csv", ..., [2: cvtr1, 1: cvtr2]); // pass in D's AA.
The text was updated successfully, but these errors were encountered:
As discussed elsewhere, add the issue here with the code location:
libmir/mir-algorithm#442 (comment)
You'd better allow user to plug in his own converters for his own data.
It is allowed now. Please check the conversionFinalizer.
So you pass out the columnIndex and columnName to let the user branch in his function to dispatch to different columns? This looks ugly, and may incur code duplication, e.g. two different csv, with col-1, col-2 swapped:
in Python, pass in dict, 2 one-liner:
But with conversionFinalizer in D:
too verbose.
Why not use the Python dictionary format, and let the Mir do such branching in the library?
Example in D can just follow the Python api:
The text was updated successfully, but these errors were encountered: