[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65971] Issue function warnings in a namespace
From: |
Glenn Groeschel |
Subject: |
[Octave-bug-tracker] [bug #65971] Issue function warnings in a namespace for easy suppression |
Date: |
Wed, 10 Jul 2024 10:57:04 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?65971>
Summary: Issue function warnings in a namespace for easy
suppression
Group: GNU Octave
Submitter: glenn
Submitted: Wed 10 Jul 2024 02:57:03 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name: Glenn Groeschel
Originator Email:
Open/Closed: Open
Release: 9.2.0
Discussion Lock: Any
Operating System: Microsoft Windows
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 10 Jul 2024 02:57:03 PM UTC By: Glenn Groeschel <glenn>
Would it be possible to have the interp1 function return warnings in its own
namespace to make suppressing these warnings easier?
When reviewing logs of large data analysis, these warnings can be repetitive
and distracting. I can disable all warnings, but this seems like overkill and
more granularity would be helpful.
x=[1 1 1 2 3 4];
y=[10 9 12 15 17 18];
interp1(x,y, [1 1.1 1.2 2.1 3.1 3.9])
Returns:
warning: interp1: multiple discontinuities at the same X value
warning: called from
interp1 at line 242 column 11
ans =
12.000 12.300 12.600 15.200 17.100 17.900
It would be nice to be able disable this warning with a command like:
warning("off","interp1:badInput")
I think this can be done just by changing line 242 of interp1.m
from:
warning ("interp1: multiple discontinuities at the same X value");
to:
warning ("interp1:badInput","interp1: multiple discontinuities at the same X
value");
This likely could be applied to other functions like interp2 as well. Is
there a reason that these functions shouldn't use their own namespace for
warnings?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65971>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #65971] Issue function warnings in a namespace for easy suppression,
Glenn Groeschel <=