[IPython-dev] NDArray for traitlets
Marmaduke Woodman
mmwoodman at gmail.com
Mon Dec 30 18:25:43 EST 2013
Hi,
I was taking IPython's traitlets module for a spin to do manifest typing in
a project I work on, and the only thing I found missing was an NDArray
class which was fairly easy to put together, to traitlets' credit, and is
posted at
https://gist.github.com/mmwoodman/8187958
Basically, it is designed mainly to support shape and dtype specifications,
which are enforced during validation, and change notification, configured
per trait using `id()`, `all()` or `allclose()`.
I'm writing to share this is case it is useful for other users of the
traitlets module, and if anyone is willing to provide some feedback on how
I've used the traitlets module, I'd love to hear it.
I've also heard that traitlets might also be spun-off into a standalone
module, in which case I'd find useful to have something like this be
included.
Thanks,
Marmaduke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20131231/843bb111/attachment.html>
More information about the IPython-dev
mailing list