This PR returns the if-statements to assimilation loops for calling setters of master equations, i.e. the setters are only called when assimilation was carried out. This speeds up that part of the code by ~27% (at least for the 1e3 case).
There are also a couple of minor stylistic changes and minor bug fixes.
Also, one thing I'm not sure about (whether it's a bug or not) is which statuses we should be loading on the backward-DA sweep... it used to be start_statuses but since now we're doing DA first and then master equations, should that be end_statuses instead? I changed it to end_statuses but this is open for discussion. I'll mark the place in the code.
This PR returns the
if
-statements to assimilation loops for calling setters of master equations, i.e. the setters are only called when assimilation was carried out. This speeds up that part of the code by ~27% (at least for the 1e3 case).There are also a couple of minor stylistic changes and minor bug fixes.
Also, one thing I'm not sure about (whether it's a bug or not) is which statuses we should be loading on the backward-DA sweep... it used to be
start_statuses
but since now we're doing DA first and then master equations, should that beend_statuses
instead? I changed it toend_statuses
but this is open for discussion. I'll mark the place in the code.