Re: [SciPy-User] Is there existing code to log-with-bells-on for runtime algorithm diagnostics?

2015-05-06 Thread Rob Clewley
Just to follow up on this thread, for interested readers' future reference... On Tue, Apr 21, 2015 at 4:22 PM, Robert Kern wrote: > On Tue, Apr 21, 2015 at 8:02 PM, Rob Clewley wrote: >> In fact, I'm trying to build a general purpose tool for exploring the >> inner workings of numerical algorith

Re: [SciPy-User] Is there existing code to log-with-bells-on for runtime algorithm diagnostics?

2015-04-21 Thread Cameron Simpson
On 22Apr2015 10:50, Chris Angelico wrote: On Wed, Apr 22, 2015 at 10:11 AM, Cameron Simpson wrote: I have a context manager named "Pfx" which I use liberally in my code like this: from cs.logutils import Pfx, info def load(filename): with Pfx("loading %r", filename): with open(file

Re: [SciPy-User] Is there existing code to log-with-bells-on for runtime algorithm diagnostics?

2015-04-21 Thread Chris Angelico
On Wed, Apr 22, 2015 at 10:11 AM, Cameron Simpson wrote: > I have a context manager named "Pfx" which I use liberally in my code like > this: > > from cs.logutils import Pfx, info > > def load(filename): >with Pfx("loading %r", filename): > with open(filename) as fp: >lineno = 0

Re: [SciPy-User] Is there existing code to log-with-bells-on for runtime algorithm diagnostics?

2015-04-21 Thread Cameron Simpson
On 21Apr2015 16:46, Rob Clewley wrote: All of these ideas and links are very helpful, thank you! Another to add to your list, a be warned that it is baroque. I have a context manager named "Pfx" which I use liberally in my code like this: from cs.logutils import Pfx, info def load(filen

Re: Is there existing code to log-with-bells-on for runtime algorithm diagnostics?

2015-04-21 Thread Mark Lawrence
On 21/04/2015 21:22, Robert Kern wrote: On Tue, Apr 21, 2015 at 8:02 PM, Rob Clewley wrote: Hi, I'm in need of a system for logging the step-wise results and diagnostic metadata about a python function implementation of an algorithm that I'm developing. The specific algorithm is not of great

Re: [SciPy-User] Is there existing code to log-with-bells-on for runtime algorithm diagnostics?

2015-04-21 Thread Rob Clewley
All of these ideas and links are very helpful, thank you! -Rob -- https://mail.python.org/mailman/listinfo/python-list

Re: [SciPy-User] Is there existing code to log-with-bells-on for runtime algorithm diagnostics?

2015-04-21 Thread Robert Kern
On Tue, Apr 21, 2015 at 8:02 PM, Rob Clewley wrote: > > Hi, > > I'm in need of a system for logging the step-wise results and > diagnostic metadata about a python function implementation of an > algorithm that I'm developing. The specific algorithm is not of great > consequence except that it's fo

Re: Is there existing code to log-with-bells-on for runtime algorithm diagnostics?

2015-04-21 Thread Ian Kelly
On Tue, Apr 21, 2015 at 1:02 PM, Rob Clewley wrote: > I don't think the built-in logger is sophisticated enough for this, > being a flat record of freeform text AFAIU, but the API looks > appealing. It doesn't have to be a flat record. You can write a custom a Handler that does anything you want

Is there existing code to log-with-bells-on for runtime algorithm diagnostics?

2015-04-21 Thread Rob Clewley
Hi, I'm in need of a system for logging the step-wise results and diagnostic metadata about a python function implementation of an algorithm that I'm developing. The specific algorithm is not of great consequence except that it's for scientific computing and may produce large (e.g., '00s or maybe