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 robert.k...@gmail.com wrote: On Tue, Apr 21, 2015 at 8:02 PM, Rob Clewley rob.clew...@gmail.com wrote: In fact, I'm trying to build a general purpose tool for exploring the

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 rob.clew...@gmail.com 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

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

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: 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 rob.clew...@gmail.com 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

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 rob.clew...@gmail.com 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

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 ros...@gmail.com wrote: On Wed, Apr 22, 2015 at 10:11 AM, Cameron Simpson c...@zip.com.au 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,

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 c...@zip.com.au 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

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 rob.clew...@gmail.com 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,