comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » how to suppres warning
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
how to suppres warning [message #62985] Wed, 22 October 2008 02:13 Go to next message
Ingo von Borstel is currently offline  Ingo von Borstel
Messages: 54
Registered: September 2006
Member
Hello,

is there a way to suppress warnings like
% Type conversion error: Unable to convert given STRING to Double.
% Detected at: READ_TABLE 58 /home/ingo/idltools/read_table.pro
in order to not spam the console entirely? I'd rather have the programme
issue one warning for the entire read process instead of one for each
line of the table I'm reading...

I've been looking through the docs, but it was my impression that the
usage of on_error doesn't help...

Regards,
Ingo

--
Ingo von Borstel <newsgroups@planetmaker.de>
Public Key: http://www.planetmaker.de/ingo.asc

If you need an urgent reply, replace newsgroups by vgap.
Re: how to suppres warning [message #63036 is a reply to message #62985] Thu, 23 October 2008 18:13 Go to previous message
MC is currently offline  MC
Messages: 50
Registered: September 1996
Member
Read the entire line and process it as a string using the same format
that generated it... At least thats how it was done in the dark
ages...

Cheers

On Oct 23, 9:36 pm, Ingo von Borstel <newsgro...@planetmaker.de>
wrote:
> Hi,
>
>> is your problem that you get megabytes of warning texts, but execution
>> continues?
>
> The only error which I get is a type conversion error - which has no
> influence whatsoever and the programme happily continues to run.
>
>> you do not care that some part of your data was not read correctly?
>
> Exactly. I'm reading a data files with different number of columns which
> as the first and last part of each line contains a textual comment -
> which of course fails to convert to a numerical value.
>
>> If it is the former, maybe it is better to suffer the warnings than to
>> waste effort in suppressing them.
>
> Well, yes, I _can_ live with them. As it seems that it's not as easy
> (just changing a switch or compile option yet unknown to me), that's
> what it will be. I know it's not overtly complicated to get rid of them,
> but I would need to customize the read-in procedure (it can deal with
> leading, but not trailing text) which I wanted to avoid in order to
> avoid code duplication.
>
> Thanks for your advice :)
>
> Ingo
>
> --
> Ingo von Borstel                <newsgro...@planetmaker.de>
> Public Key:http://www.planetmaker.de/ingo.asc
>
> If you need an urgent reply, replace newsgroups by vgap.
Re: how to suppres warning [message #63064 is a reply to message #62985] Wed, 22 October 2008 20:22 Go to previous message
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
On Oct 22, 7:13 pm, Ingo von Borstel <newsgro...@planetmaker.de>
wrote:
> Hello,
>
> is there a way to suppress warnings

Turn off the switch on the back of that bubble-brained robot?


Andrew
Re: how to suppres warning [message #63067 is a reply to message #62985] Wed, 22 October 2008 10:13 Go to previous message
astroboy2k is currently offline  astroboy2k
Messages: 34
Registered: July 2007
Member
Blessed are the peacemakers. Apologies to all.

Mark


On Oct 22, 1:10 pm, David Fanning <n...@dfanning.com> wrote:
> Mark writes:
>> Having said that, I'm afraid my message did come across like I was
>> asking someone else to do my thinking for me out of laziness. Sorry
>> 'bout that.


>
> Seems like we all got off to a bad start this morning. We
> should start over tomorrow. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: how to suppres warning [message #63068 is a reply to message #62985] Wed, 22 October 2008 10:10 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark writes:

> Having said that, I'm afraid my message did come across like I was
> asking someone else to do my thinking for me out of laziness. Sorry
> 'bout that.

Seems like we all got off to a bad start this morning. We
should start over tomorrow. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: changing font type on a widget
Next Topic: QUESTION: is there a command in idl which could clean up memory pieces?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:52:12 PDT 2025

Total time taken to generate the page: 0.00640 seconds