Conversation
This avoids conflict with the python builtin `iter`
|
@spencerlyon2: which timer code are you refering to ? Is it related to the discussion we had a while ago EconForge/dolo.py#34 about adding a time decorator for time consuming functions ? If so, I don't like that idea anymore: it makes more sense to use a context manager for that. I guess it would fit perfectly in quantecon. I'm opening an issue for that. |
|
@albop I was talking about this code: https://github.com/QuantEcon/QuantEcon.py/blob/master/quantecon/timing.py Although the |
|
@spencerlyon2 This is nice. The function Shall we leave it where it is for now with the option of pulling it out and putting it in a util.py file in the future should demand arise? |
|
Ahem, that was out of topic: I had forgotten about the tic-tac-toc routines. |
ENH: added formatting to iteration printing
This adds a bit prettier printing scheme to compute fixed point.
It might belong somewhere else in the project as it can be used in any iterative algorithm.
Perhaps we should lump this and @albop's timer code into a
util.pyfile or something similar?