Skip to content
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

Instances of magExt variable not renamed to magdec_name_extension in workhorseParse.m #743

Closed
sspagnol opened this issue Jun 9, 2021 · 3 comments
Labels
Type:bug Something is missing or wrong

Comments

@sspagnol
Copy link
Contributor

sspagnol commented Jun 9, 2021

In workhorseParse.m looks like the old magExt variable was renamed to magdec_name_extension, but there are still instances of magExt used in the isWaveData code block.

And maybe magdec_name_extension needs to initialized after line 60 before the if statement

magdec_name_extension = '';

And there are usages of magdec_name_comment.

@sspagnol
Copy link
Contributor Author

sspagnol commented Jun 9, 2021

Wonder why you just use the struct magdec_xattrs and

magdec_name_extension --> magdec_attrs.extension
magdec_name_comment -- > magdec_attrs.comment

@ocehugo ocehugo added the Type:bug Something is missing or wrong label Jun 10, 2021
@ocehugo
Copy link
Contributor

ocehugo commented Jun 10, 2021

Thanks ! confirmed. We just merged a hotfix but didn't create a tag, so I will recompile the stuff and include this in the fix.

This happened because we don't have tests for wave data. It would be good to have one - the fix is easy though so I will skip that so we can release the hot fix tomorrow

@ocehugo
Copy link
Contributor

ocehugo commented Jun 10, 2021

In fact, this is a combination of problems: lack of test available and an incomplete Matlab checker:

something_that_exists = another_var_that_doest_exist

the above is not warned at all, only at the run/execution time of the line, which never happened since that wave-related code has no tests.

lbesnard added a commit that referenced this issue Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:bug Something is missing or wrong
Projects
None yet
Development

No branches or pull requests

2 participants