Displayin the mean sound speed in the database tab #95
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.
We have a requirement to quickly access the mean sound speed (weighted harmonic mean) of a cast without having to explicitly call the profile statistics calculation in SSM. A new column in the table of the Database tab would fulfill this requirement. This PR is a prototype solution. However, the weighted harmonic mean calculation is refreshed at every table update, which is far from optimal. A better solution would be to store the mean sound speed when the cast gets read into SSM and is permanently stored in the profile.Metadata class (or some other member of the Profile class). That would probably require a change to the SQlite3 data structure, wouldn't it? I presume that this would break backwards compatibility? I just wanted to hear some thoughts on this. Thanks.