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

DM-13711: Add type of observation information to visitInfo #430

Merged
merged 1 commit into from Sep 12, 2022

Conversation

parejkoj
Copy link
Collaborator

No description provided.

@parejkoj parejkoj force-pushed the tickets/DM-13711 branch 2 times, most recently from 7cc8cc9 to be1ff98 Compare August 31, 2022 21:14
Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

This looks fine but can you please add tests for this in test_makeRawVisitInfoViaObsInfo.py? The infrastructure is all set up for it and you did express concern that this was not tested.

Adding _const_map section to the NewTranslator class will demonstrate that the content does appear as expected in a VisitInfo. To test the case where the new values are all None you would either have to make a completely new translator class with different hard-coded values, or else drop _const_map and add explicit translations for each attribute -- then you can control the output based on the test header you pass in.

@parejkoj
Copy link
Collaborator Author

parejkoj commented Sep 6, 2022

I've added tests of the new fields, including empty value handling.

@parejkoj parejkoj merged commit 188f660 into main Sep 12, 2022
@parejkoj parejkoj deleted the tickets/DM-13711 branch September 12, 2022 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants