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
Is that the best we can do for beast2 implementers?
If so, it should be prominently documented (I was not aware of this issue until now).
It would be nice if the code knew not to call the initAndValidate on resume, or maybe just the parts that matter? Perhaps we can separate the init into two parts (first-time and resume)? or at least pass a flag in?
The text was updated successfully, but these errors were encountered:
If there are a number of states in which initAndValidate can be called then there are two options:
(1) Separate behaviour into different methods
(2) Add an argument to initAndValidate to explicitly signal which state it is being called in.
An argument is better than global variable, since its clear to the programmer that they haven't used it when they are implementing a method. A global variable can easily be overlooked or not known about when implementing a method.
I see this code in ClusterTree.java
Is that the best we can do for beast2 implementers?
If so, it should be prominently documented (I was not aware of this issue until now).
It would be nice if the code knew not to call the initAndValidate on resume, or maybe just the parts that matter? Perhaps we can separate the init into two parts (first-time and resume)? or at least pass a flag in?
The text was updated successfully, but these errors were encountered: