Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27678
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <wrw@mac.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'output': 0.04; 'python': 0.09; "'...'": 0.09; '22,': 0.09; 'docs.': 0.09; 'output,': 0.09; 'cc:addr:python-list': 0.10; 'looked': 0.10; 'aug': 0.13; 'file,': 0.15; '...,': 0.16; 'arrays.': 0.16; 'both.': 0.16; 'hint': 0.16; 'jerry': 0.16; 'numpy': 0.16; 'received:mac.com': 0.16; 'suggestion.': 0.16; 'wing': 0.16; 'wed,': 0.16; 'string': 0.17; 'wrote:': 0.17; 'received:10.0.1': 0.17; 'file.': 0.20; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'am,': 0.27; 'guess': 0.27; 'actual': 0.28; 'arrays': 0.29; 'cat': 0.29; 'getting': 0.33; 'received:10.0': 0.33; 'thanks': 0.34; 'needed': 0.35; 'lists.': 0.35; 'received:17': 0.35; 'pm,': 0.35; 'charset:us-ascii': 0.36; 'data': 0.37; 'subject:: ': 0.38; 'received:10': 0.38; 'instead': 0.39; 'contents.': 0.65; 'middle': 0.66; 'fact,': 0.69; 'skip:n 40': 0.72; 'william': 0.78; '160': 0.84; 'otten': 0.84; 'hill': 0.96 |
| MIME-version | 1.0 |
| Content-transfer-encoding | 7BIT |
| Content-type | text/plain; CHARSET=US-ASCII |
| X-Proofpoint-Virus-Version | vendor=fsecure engine=2.50.10432:5.7.7855,1.0.260,0.0.0000 definitions=2012-08-22_04:2012-08-22, 2012-08-22, 1970-01-01 signatures=0 |
| X-Proofpoint-Spam-Details | rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1208220189 |
| Subject | Re: writelines puzzle |
| From | "William R. Wing (Bill Wing)" <wrw@mac.com> |
| In-reply-to | <CADwdpyawSQHaaadL6fHSLNQzSxYD9RLgzt=HkHbJHbjHACbqWw@mail.gmail.com> |
| Date | Wed, 22 Aug 2012 14:36:34 -0400 |
| References | <290CC961-63B7-4B9B-8822-AE7CBB5A5AED@mac.com> <CADwdpyawSQHaaadL6fHSLNQzSxYD9RLgzt=HkHbJHbjHACbqWw@mail.gmail.com> |
| To | Jerry Hill <malaclypse2@gmail.com> |
| X-Mailer | Apple Mail (2.1485) |
| Cc | "python-list@python.org" <python-list@python.org>, "William R. Wing \(Bill Wing\)" <wrw@mac.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3683.1345664205.4697.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1345664205 news.xs4all.nl 6870 [2001:888:2000:d::a6]:59159 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:27678 |
Show key headers only | View raw
On Aug 22, 2012, at 1:28 PM, Jerry Hill <malaclypse2@gmail.com> wrote: > On Wed, Aug 22, 2012 at 11:38 AM, William R. Wing (Bill Wing) > <wrw@mac.com> wrote: >> Much to my surprise, when I looked at the output file, it only contained 160 characters. Catting produces: >> >> StraylightPro:Logs wrw$ cat RTT_monitor.dat >> 2354[ 734716.72185185 734716.72233796 734716.72445602 ..., 734737.4440162 >> 734737.45097222 734737.45766204][ 240. 28.5 73.3 ..., 28.4 27.4 26.4] > > If that's the full output, then my guess is that x_dates and y_rtt are > not actual python lists. I bet they are, in fact, numpy arrays and > that the string representation of those arrays (what you're getting > from str(x_dates), etc) include the '...' in the middle instead of the > full contents. > > Am I close? > > -- > Jerry Yes - bingo. They are numpy arrays. And that was the hint I needed to go look in the numpy docs. Found numpy.set_printoptions(threshold='nan'), which has indeed allowed me to get all the data into the file. I now see Peter Otten made the same suggestion. Thanks to you both. Bill
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: writelines puzzle "William R. Wing (Bill Wing)" <wrw@mac.com> - 2012-08-22 14:36 -0400
csiph-web