-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impedance type change, name change, bug fix #1019
Conversation
…mpedance_transceiver
… to impedance_transceiver, Anderson to Anderson, Macaulay to Matlab
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## dev #1019 +/- ##
===========================================
- Coverage 80.45% 66.91% -13.54%
===========================================
Files 67 30 -37
Lines 6038 3857 -2181
===========================================
- Hits 4858 2581 -2277
- Misses 1180 1276 +96
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 54 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I don't know anything about this, but an implementation name of "Matlab" seems not specific enough, unlike Andersen and Macaulay. The Andersen implementation code has a helpful 2-line comment that provides background. Is the "Matlab" implementation from a specific m-script file, from the general Matlab code base, or something else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done reviewing. In addition to my other small comments, I mainly checked for consistency of the variable renaming, impedance_transmit
-> impedance_transducer
and impedance_receive
-> impedance_transceiver
. I didn't find any errors (inconsistencies).
The "Matlab" implementation came from Lars Andersen in matlab Echolab code that was passed through multiple people (I got it from Chu). In fact, I think the best way to do this is to remove this implementation completely. I spoked with Lars about this and the specific chirp implementation is due to the implementation in hardware, so we should stick to it. |
@emiliom : I've added type hint to Let me know what you think about the "Matlab" implementation of chirp. |
👍
Well, the issue goes away if you remove the "Matlab" implementation 😉. So, no additional comment here. It's up to you whether to keep it or not. If you do keep it, my suggestion would be to simply change the label to something like "MatlabEcholab" and add a comment like the sentence above describing its origin. |
I think I'll opt for removing that section entirely, since it does not have the simplicity of just using a general chirp function, nor does it conform with what Simrad actually uses. I'll push up a commit for the removal. |
This PR contains the following changes:
float
(addresses impedance int > float #1018)impedance_transmit
toimpedance_transducer
andimpedance_receive
toimpedance_transceiver
(leftover that resulted into bug from v0.7.0)Anderson
toAndersen
changeMacaulay
toMatlab
since original code came from AndersenMacaulay
chirp replica implementation and only keep the one in reference to Andersen