From: John H. <jd...@gm...> - 2012-07-13 13:11:07
|
On Jul 13, 2012, at 7:57 AM, Benjamin Root <ben...@ou...> wrote: > There was talk of this living in mlab or cbook. Is there a preference? > > > Neither. cbook is really meant more for the devs. Half of it is converter functions that are probably completely unneeded now, while the other half is the callback registry. I disagree that cbook is meant for devs. I initially used cbook as a place to put neat recipes from the python cookbook. It has grown a bit from there. The stuff that is in there like "is_string_like" is generically useful. The converters are used by the rec2* funcs, eg the rec2excel function in the exceltools toolkit. I use these extensively. > Luckily, the module is called "cbook.py", so one could pretend that it isn't "cookbook" but rather "callback book"... > > Meanwhile, mlab's own documentation says: "Numerical python functions written for compatability with MATLAB > commands with the same names." So, unless someone can find out if MATLAB has some sort of equivalent functionality hidden away somewhere, it doesn't belong there either. > Or better, we change the docstring. I think of mlab as a place to put numerical or semi-numerical stuff in support of plotting. > Not sure where to put it. mlab is probably the best place. |