- ISBN13: 978-1-4302-1843-2
- ISBN10: 1-4302-1843-6
- 384 pp.
- Published Feb 2009
- Print Book Price: $42.99
- eBook Price: $30.09
Errata Submission
If you think that you've found an error in Beginning Python Visualization: Crafting Visual Transformation Scripts, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.
Errata
| Issue | Author's Response |
|---|---|
| Chapter 1 - GPS I have a Garmin 205W GPS device to work with for this project but there is only a USB connection for this. The scanport.py script work fine but it does not find the GPS device and I get a serial error when trying the second script to print the GPS data. Can 'import serial' be used for USB connections? Also, there is nothing in the literature about the port number used and I do not believe that USB has a baud rate?!? Thank you for your assistance! Regards, Ed |
The Garmin is not a USB-GPS receiver. It is a portable navigation system with a GPS, and it has a USB connection-- it's not the same thing. I don't believe personal navigation devices will send out the data on the USB line. If you're looking for a USB-GPS receiver (such as the one used in the book), just search for "USB GPS receiver" in Amazon for example and you'll get a long list of devices, in the $30-$50 range. With a USB GPS receiver, the serial port method usually works. Thanks for your interest in the book, - Shai |
| Ch 4, p 111 I am wondering how list and array slicing should work like this: values[:,0] with python 2.6: In [1]: l = [1,2,3,4] In [2]: l[:,0] --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /Users/schwehr/<ipython console> in <module>() TypeError: list indices must be integers, not tuple |
The variable I in your listing is a list, not a NumPy array. Furthermore, it's a vector (one dimensional array) and not a matrix (2-d array). Try this instead (notice the double brackets that create I a 2-d array): In [1]: from pylab import * In [2]: I = array([[1, 2, 3, 4]]) In [3]: I[:, 0] Out[3]: array([1]) In [4]: I[0, :] Out[4]: array([1, 2, 3, 4]) |
| chapter 1, page 3 The pyserial/serial module was not included in my python standard distribution. An appendix or footnote should walk someone thru downloading from Sourceforge, unpacking, and running “sudo python setup.py install” in the terminal, etc. |
Thank you for your feedback. You are indeed correct: a footnote or a reference to pages 43-44 in the book where installation of pySerial is discussed should be added. Best regards, - Shai Vaingast |
