Convert warning to info message when adding additional controls/terms to trajectory #76
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The message to be changed was introduced to warn the user in the special case when terms/controls of the same type are added twice (e.g. when a term_propagation is added to a trajectory with a term_propagation). This can lead to unwanted behavior. However, with the current implementation the user is warned even when a term/control of different type is added to the trajectory. As the ability to add multiple different terms/controls to the trajectory is an intended feature of Kassiopeia, this warning message created confusion when the feature is used correctly.
This change, therefore, converts the warning message to an info message, which only states that an additional term/control is added to the trajectory. This should eliminate confusion while maintaining the level of information needed to troubleshoot the simulation.
Thanks to @pslocum for bringing up this topic!