Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33733
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <d@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'output': 0.04; '"""': 0.05; 'error:': 0.05; 'indices': 0.07; 'subject:Error': 0.07; 'fails.': 0.09; 'indicates': 0.09; 'internally': 0.09; 'references,': 0.09; 'cc:addr:python-list': 0.10; 'index': 0.13; '49,': 0.16; 'coordinates': 0.16; 'readable': 0.16; 'represents.': 0.16; 'subject:Index': 0.16; 'wrote:': 0.17; 'specify': 0.17; '>>>': 0.18; 'meant': 0.21; 'cc:2**0': 0.23; "i've": 0.23; 'somewhere': 0.24; 'idea': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:" 20': 0.26; '(most': 0.27; 'am,': 0.27; 'guess': 0.27; "doesn't": 0.28; '>>>>': 0.29; 'far,': 0.29; 'gather': 0.29; 'image,': 0.29; 'objects': 0.29; 'returned': 0.30; 'sense': 0.31; 'point': 0.31; 'file': 0.32; 'computing': 0.32; 'could': 0.32; 'goes': 0.33; 'dies': 0.33; 'traceback': 0.33; 'values.': 0.33; 'list': 0.35; 'doing': 0.35; 'really': 0.36; 'but': 0.36; 'data.': 0.36; 'loaded': 0.36; 'does': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'object': 0.38; 'some': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'range': 0.60; 'kind': 0.61; 'is.': 0.62; 'show': 0.63; 'circle': 0.65; 'else.': 0.65; 'header:Reply- To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'out..': 0.84; 'presumably': 0.84 |
| Date | Wed, 21 Nov 2012 08:26:10 -0500 |
| From | Dave Angel <d@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 |
| MIME-Version | 1.0 |
| To | inshu chauhan <insideshoes@gmail.com> |
| Subject | Re: Index Error |
| References | <CAFqGZRGWginSj-OAA3z7afXzBHuyH6n0By_8hU0J_8i7r1O9_w@mail.gmail.com> |
| In-Reply-To | <CAFqGZRGWginSj-OAA3z7afXzBHuyH6n0By_8hU0J_8i7r1O9_w@mail.gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:7lgoZ6KY0WGAIkd4a5/ATiwmYZvm2vWEvvpLPD6g3su svfxl5HH4JgDZZTPN4QPgvGb2xNpL5WPUT7NSVsL+yh25n15oh IZck1Fx7YZBKPBONLukIMmu7OaOgA9EwXCvBk/PtEl1nIZwl6j L9q9btpT0Di34ucFeRKZ0a/5JKE4gfD502Xbu9rWMzhMkQO8qg gfaxN3EvQo/72jid58yqVZyrzwVJYzQ8aon957KO8G1ny3CA0G 8ck96jm4k6jvSzFartO76duqcnnwlEDLjbK68J9etWULYxrvfe sUnZp/vQwu2/vADtgHQGFuDq638Lh3dcw6WIgL1SvkEf1zw2Q= = |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | d@davea.name |
| 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.151.1353504388.29569.python-list@python.org> (permalink) |
| Lines | 59 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1353504388 news.xs4all.nl 6891 [2001:888:2000:d::a6]:54995 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:33733 |
Show key headers only | View raw
On 11/21/2012 05:11 AM, inshu chauhan wrote:
>>
>>>
>>>> <snip>
>> I must confess I have no idea what data represents. When you're doing
>> rings, you use deltas on the cx and cy values. But when you're
>> computing radius, you use the 3d coordinates returned by data[cx, cy].
>> So is data some kind of transformation, like a projection from a 3d
>> object into a plane ?
>>
>
> If I say data is a yml image file.. does it makes sense ? Nyways I am
> treating it as matrix with values.
> Yes you can say that it is a projection of 3D objects onto a 2D plane..
> which I am finding hard to work with !!!!!
>
http://www.fileinfo.com/extension/yml
indicates that .yml files are human readable files, but doesn't
specify much else.
from other references, I gather it's used for javascript and for
database. So far, I've only found one reference to image,
http://stackoverflow.com/questions/10017298/read-yml-files-in-matlab
but that doesn't really give me any intuitive meaning for the data. So
i cannot guess what the meaning of circle radius is.
At 8:43 yesterday, you had the following output and trace:
"""
data loaded
[(296, 403), (298, 403), (298, 405), (296, 405), (297, 403), (298, 404),
(297, 405), (296, 404)] ... I am printing Indices to know what index it
dies out..
Traceback (most recent call last):
File "Z:/modules/Classify.py", line 73, in <module>
ComputeClasses(data)
File "Z:/modules/Classify.py", line 49, in ComputeClasses
point = data[idx[0], idx[1]]
error: index is out of range
"""
If you meant to just show us the last new_indices list printed out, then
presumably somewhere in that list is the one that fails.
Could it be that the internally linked jpeg file has the size 300 x
3000, and that the yml data only goes to 300 x 400 ?
--
DaveA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Index Error Dave Angel <d@davea.name> - 2012-11-21 08:26 -0500
csiph-web