Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jacobagilbert
Copy link
Member

@jacobagilbert jacobagilbert commented Sep 28, 2021

This prevents users from setting a datafile, which queries information that requires the datatype meta field to be set. It also generates a more useful exception when the dtype parser is run with None input.

Closes #178

@Teque5 I solved this in a slightly different way than described in #178 because that prevents constructing a plain SigMFFile() object, which is reasonable and people might be doing this already. This only changes behavior that currently causes an obscure error.

@jacobagilbert jacobagilbert force-pushed the fix_sigmffile_dtype branch 2 times, most recently from cddc7bc to ee19c72 Compare September 28, 2021 18:34
Copy link
Collaborator

@Teque5 Teque5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea looks good. I would attempt to see if this passes tests, but tests are broken for other reasons right now.

This prevents users from setting a datafile, which queries information
that requires the datatype meta field to be set. It also generates a
more useful exception when the dtype parser is run with None input.
@jacobagilbert
Copy link
Member Author

jacobagilbert commented Sep 28, 2021

@Teque5 i rebased this with the fixes you made; how are you running the SigMF test code? It would be good to add a test that catches this error.

Nevermind, pytest does the trick. Seems to pass with your other fixes; tests seem adequate.

@jacobagilbert
Copy link
Member Author

Test pass, approval. Merging.

@jacobagilbert jacobagilbert merged commit 042ec0f into sigmf-v1.x Sep 28, 2021
@jacobagilbert jacobagilbert deleted the fix_sigmffile_dtype branch June 2, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating a SigMFFile object without optional fields fails

3 participants