> On Apr 25, 2016, at 11:21 AM, Michael Betancourt <
betan...@gmail.com> wrote:
>
> I just spend the last there hours or so trying to incorporate all of the
> changes needed to make the RHMC branch work with the added
> error writers, and not the majority of the HMC code is passing around
> these f’ing writers, most of which do nothing. When more writers
> are added to implement logging it’s going to get even worse.
>
> I really want to fix this soon to put the HMC code back in a clean
> state. I imagine this would consist of
>
> a) A logger object which wraps all of the necessary writers and
> exposes methods like “write_info”, “writer_fatal”, etc
+1. I've been saying the same thing.
> b) Passing the logger to the samplers on construction.
I take it they're all stateful already?
> c) Storing a reference to the input logger in the internal ps_point
> instantiation so that when this->z_ is passed around so to is
> the logger.
I have no opinion on this.
> In this way the logging implementation can be tweaked without
> affecting the HMC code.
:-) I already suggested the same thing to Daniel.
> Also, in the future please don’t merge updates that touch nearly
> all of the HMC code without my review.
OK by me.
- Bob