ANN: PyDSTool 0.87 released
Dear Scipy and Numpy user lists, The latest update to the open-source python dynamical systems modeling toolbox, PyDSTool 0.87, has been released on Sourceforge. http://www.sourceforge.net/projects/pydstool/ Major highlights are: * Implemented a more natural hybrid model specification format * Supports quadratic interpolation of data points in Trajectory objects (courtesy of Anne Archibald's poly_int class) * Supports more sophisticated data-driven model inference * Improved efficiency of ODE solvers * Various bug fixes and other API improvements * New demonstration scripts and more commenting for existing scripts in PyDSTool/tests/ * New wiki tutorial (courtesy of Daniel Martí) This is a modest update in preparation for a substantial upgrade at version 0.90, which will move symbolic expression support over to SymPy, and greatly improve the implementation of C-based ODE integrators. We are also trying to incorporate basic boundary-value problem solving, and we aim to further improve the parameter estimation / model inference tools to work effectively with OpenOpt. For installation and setting up, see the GettingStarted page at our wiki, http://pydstool.sourceforge.net The download contains full API documentation, BSD license information, and further details of recent code changes. Further documentation is on the wiki. As ever, all feedback is welcome as we try to find time to improve our code base. If you would like to contribute effort in improving the tutorial and wiki documentation, or to the code itself, please contact me. -Rob Clewley
Hi, I have a large array and I want to convert it into a binary array. For exampe, y=array([1,2,3]), after the convertion I want the result array([0,0,0,1,0,0,1,0,0,0,1,1]). Each digit is converted into 4 bits in this example. In my real problem I want to convert each digit to 8 bits. My data is numpy.ndarray and the shape is, say, (1000,). Are there fast and efficient solution for this? Thanks Frank _________________________________________________________________ Color coding for safety: Windows Live Hotmail alerts you to suspicious email. http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_...
frank wang schrieb:
Hi,
I have a large array and I want to convert it into a binary array. For exampe, y=array([1,2,3]), after the convertion I want the result array([0,0,0,1,0,0,1,0,0,0,1,1]). Each digit is converted into 4 bits in this example. In my real problem I want to convert each digit to 8 bits. My data is numpy.ndarray and the shape is, say, (1000,).
Are there fast and efficient solution for this?
a = array([1,2,3], dtype = uint8) unpackbits(a) array([0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1], dtype=uint8)
Gregor
participants (3)
-
frank wang
-
Gregor Thalhammer
-
Rob Clewley