-
Notifications
You must be signed in to change notification settings - Fork 16
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
MNT/ENH: Add FLOAT and FILL options for spreadsheet dataType #701
MNT/ENH: Add FLOAT and FILL options for spreadsheet dataType #701
Conversation
This adds two new options to the handled data types, and also raises an error if we get a datatype that isn't handled. This is important because otherwise there will be a parameter added without a corresponding parameterType entry.
c593f9f
to
955845d
Compare
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.
I went down the road of mocking/creating this spreadsheet in code, but it ended up being a lot more confusing in my opinion to follow what was being changed/updated. So this seemed reasonable to add a small-ish binary file for testing this routine for clarity's sake.
955845d
to
d517443
Compare
Add a simple excel file with variable types we want to test and assert against a known XML file we have produced.
d517443
to
0c65eb1
Compare
@tech3371, ping for review on this again. |
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.
LGTM!
def test_generated_xml(excel_file, tmp_path): | ||
"""Make sure we are producing the expected contents within the XML file. | ||
|
||
To produce a new expected output file the following command can be used. |
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.
Good to know! This makes me wonder, do we have readme for this cli tool?
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.
We have an issue to make this better! On my list...
#703
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.
LGTM. I will admit that I am not up to speed on the xtce requirements though.
ba50882
into
IMAP-Science-Operations-Center:dev
Change Summary
Overview
This adds two new options to the handled data types, and also raises an error if we get a datatype that isn't handled. This is important because otherwise there will be a parameter added without a corresponding parameterType entry.
Working from an SCID spreadsheet, I now get the following parameterTypes, when they were missing before.
closes #697