You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staticapplyState(model,stateObject){validate(model,this.validator);// We make an assumption about Float64ArrayIO's serialization here, so that we don't create temporary garbage// Float64Arrays. Instead we set the array values directly.model.yDraw.set(stateObject.private.yDraw);model.yNow.set(stateObject.private.yNow);model.yLast.set(stateObject.private.yLast);model.yNext.set(stateObject.private.yNext);model.yNowChangedEmitter.emit();}
But it seems these should leverage Float64IO.applyState, like so:
staticapplyState(model,stateObject){validate(model,this.validator);// We make an assumption about Float64ArrayIO's serialization here, so that we don't create temporary garbage// Float64Arrays. Instead we set the array values directly.Float64ArrayIO.applyState(model.yDraw,stateObject.private.yDraw);// ...model.yNowChangedEmitter.emit();}
WOASModelIO currently has:
But it seems these should leverage Float64IO.applyState, like so:
@zepumph can you please take a look?
The text was updated successfully, but these errors were encountered: