-
Notifications
You must be signed in to change notification settings - Fork 99
Improve usability of get_site_pass_fail by returning dict - site: pass_fail #1329
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d40a1d8
Improve usability of get_site_pass_fail by returning dict - site: pas…
sbethur 11b99dd
Update CHANGELOG
sbethur aa7c5bf
Merging from master
sbethur 5903d41
Addressed feedback
sbethur 71be8d4
Add "All sites" case to test_get_site_pass_fail
sbethur be54ae8
Add whitespace within dict literal, as required by flake8
sbethur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-108 Bytes
(98%)
src/nidigital/system_tests/test_files/simple_pattern/pattern.digipat
Binary file not shown.
182 changes: 80 additions & 102 deletions
182
src/nidigital/system_tests/test_files/simple_pattern/pin_map.pinmap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,103 +1,81 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <PinMap xmlns="http://www.ni.com/TestStand/SemiconductorModule/PinMap.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="1.5"> | ||
| <Instruments> | ||
| <NIDigitalPatternInstrument name="PXI1Slot2" numberOfChannels="32" group="Digital" /> | ||
| <NIDigitalPatternInstrument name="PXI1Slot5" numberOfChannels="32" group="Digital" /> | ||
| </Instruments> | ||
| <Pins> | ||
| <DUTPin name="LO0" /> | ||
| <DUTPin name="LO1" /> | ||
| <DUTPin name="LO2" /> | ||
| <DUTPin name="LO3" /> | ||
| <DUTPin name="LO4" /> | ||
| <DUTPin name="LO5" /> | ||
| <DUTPin name="LO6" /> | ||
| <DUTPin name="LO7" /> | ||
| <DUTPin name="HI0" /> | ||
| <DUTPin name="HI1" /> | ||
| <DUTPin name="HI2" /> | ||
| <DUTPin name="HI3" /> | ||
| <DUTPin name="HI4" /> | ||
| <DUTPin name="HI5" /> | ||
| <DUTPin name="HI6" /> | ||
| <DUTPin name="HI7" /> | ||
| </Pins> | ||
| <PinGroups> | ||
| <PinGroup name="AllPins"> | ||
| <PinReference pin="LO0" /> | ||
| <PinReference pin="LO1" /> | ||
| <PinReference pin="LO2" /> | ||
| <PinReference pin="LO3" /> | ||
| <PinReference pin="LO4" /> | ||
| <PinReference pin="LO5" /> | ||
| <PinReference pin="LO6" /> | ||
| <PinReference pin="LO7" /> | ||
| <PinReference pin="HI0" /> | ||
| <PinReference pin="HI1" /> | ||
| <PinReference pin="HI2" /> | ||
| <PinReference pin="HI3" /> | ||
| <PinReference pin="HI4" /> | ||
| <PinReference pin="HI5" /> | ||
| <PinReference pin="HI6" /> | ||
| <PinReference pin="HI7" /> | ||
| </PinGroup> | ||
| <PinGroup name="LowPins"> | ||
| <PinReference pin="LO0" /> | ||
| <PinReference pin="LO1" /> | ||
| <PinReference pin="LO2" /> | ||
| <PinReference pin="LO3" /> | ||
| <PinReference pin="LO4" /> | ||
| <PinReference pin="LO5" /> | ||
| <PinReference pin="LO6" /> | ||
| <PinReference pin="LO7" /> | ||
| </PinGroup> | ||
| <PinGroup name="HighPins"> | ||
| <PinReference pin="HI0" /> | ||
| <PinReference pin="HI1" /> | ||
| <PinReference pin="HI2" /> | ||
| <PinReference pin="HI3" /> | ||
| <PinReference pin="HI4" /> | ||
| <PinReference pin="HI5" /> | ||
| <PinReference pin="HI6" /> | ||
| <PinReference pin="HI7" /> | ||
| </PinGroup> | ||
| </PinGroups> | ||
| <Sites> | ||
| <Site siteNumber="0" /> | ||
| <Site siteNumber="1" /> | ||
| </Sites> | ||
| <Connections> | ||
| <Connection pin="HI0" siteNumber="0" instrument="PXI1Slot2" channel="0" /> | ||
| <Connection pin="HI0" siteNumber="1" instrument="PXI1Slot2" channel="1" /> | ||
| <Connection pin="HI1" siteNumber="0" instrument="PXI1Slot2" channel="2" /> | ||
| <Connection pin="HI1" siteNumber="1" instrument="PXI1Slot2" channel="3" /> | ||
| <Connection pin="HI2" siteNumber="0" instrument="PXI1Slot2" channel="4" /> | ||
| <Connection pin="HI2" siteNumber="1" instrument="PXI1Slot2" channel="5" /> | ||
| <Connection pin="HI3" siteNumber="0" instrument="PXI1Slot2" channel="6" /> | ||
| <Connection pin="HI3" siteNumber="1" instrument="PXI1Slot2" channel="7" /> | ||
| <Connection pin="HI4" siteNumber="0" instrument="PXI1Slot2" channel="8" /> | ||
| <Connection pin="HI4" siteNumber="1" instrument="PXI1Slot2" channel="9" /> | ||
| <Connection pin="HI5" siteNumber="0" instrument="PXI1Slot2" channel="10" /> | ||
| <Connection pin="HI5" siteNumber="1" instrument="PXI1Slot2" channel="11" /> | ||
| <Connection pin="HI6" siteNumber="0" instrument="PXI1Slot2" channel="12" /> | ||
| <Connection pin="HI6" siteNumber="1" instrument="PXI1Slot2" channel="13" /> | ||
| <Connection pin="HI7" siteNumber="0" instrument="PXI1Slot2" channel="14" /> | ||
| <Connection pin="HI7" siteNumber="1" instrument="PXI1Slot2" channel="15" /> | ||
| <Connection pin="LO0" siteNumber="0" instrument="PXI1Slot5" channel="16" /> | ||
| <Connection pin="LO0" siteNumber="1" instrument="PXI1Slot5" channel="17" /> | ||
| <Connection pin="LO1" siteNumber="0" instrument="PXI1Slot5" channel="18" /> | ||
| <Connection pin="LO1" siteNumber="1" instrument="PXI1Slot5" channel="19" /> | ||
| <Connection pin="LO2" siteNumber="0" instrument="PXI1Slot5" channel="20" /> | ||
| <Connection pin="LO2" siteNumber="1" instrument="PXI1Slot5" channel="21" /> | ||
| <Connection pin="LO3" siteNumber="0" instrument="PXI1Slot5" channel="22" /> | ||
| <Connection pin="LO3" siteNumber="1" instrument="PXI1Slot5" channel="23" /> | ||
| <Connection pin="LO4" siteNumber="0" instrument="PXI1Slot5" channel="24" /> | ||
| <Connection pin="LO4" siteNumber="1" instrument="PXI1Slot5" channel="25" /> | ||
| <Connection pin="LO5" siteNumber="0" instrument="PXI1Slot5" channel="26" /> | ||
| <Connection pin="LO5" siteNumber="1" instrument="PXI1Slot5" channel="27" /> | ||
| <Connection pin="LO6" siteNumber="0" instrument="PXI1Slot5" channel="28" /> | ||
| <Connection pin="LO6" siteNumber="1" instrument="PXI1Slot5" channel="29" /> | ||
| <Connection pin="LO7" siteNumber="0" instrument="PXI1Slot5" channel="30" /> | ||
| <Connection pin="LO7" siteNumber="1" instrument="PXI1Slot5" channel="31" /> | ||
| </Connections> | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <PinMap xmlns="http://www.ni.com/TestStand/SemiconductorModule/PinMap.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="1.5"> | ||
| <Instruments> | ||
| <NIDigitalPatternInstrument name="PXI1Slot2" numberOfChannels="32" group="Digital" /> | ||
| <NIDigitalPatternInstrument name="PXI1Slot5" numberOfChannels="32" group="Digital" /> | ||
| </Instruments> | ||
| <Pins> | ||
| <DUTPin name="LO0" /> | ||
| <DUTPin name="LO1" /> | ||
| <DUTPin name="LO2" /> | ||
| <DUTPin name="LO3" /> | ||
| <DUTPin name="HI0" /> | ||
| <DUTPin name="HI1" /> | ||
| <DUTPin name="HI2" /> | ||
| <DUTPin name="HI3" /> | ||
| </Pins> | ||
| <PinGroups> | ||
| <PinGroup name="AllPins"> | ||
| <PinReference pin="LO0" /> | ||
| <PinReference pin="LO1" /> | ||
| <PinReference pin="LO2" /> | ||
| <PinReference pin="LO3" /> | ||
| <PinReference pin="HI0" /> | ||
| <PinReference pin="HI1" /> | ||
| <PinReference pin="HI2" /> | ||
| <PinReference pin="HI3" /> | ||
| </PinGroup> | ||
| <PinGroup name="LowPins"> | ||
| <PinReference pin="LO0" /> | ||
| <PinReference pin="LO1" /> | ||
| <PinReference pin="LO2" /> | ||
| <PinReference pin="LO3" /> | ||
| </PinGroup> | ||
| <PinGroup name="HighPins"> | ||
| <PinReference pin="HI0" /> | ||
| <PinReference pin="HI1" /> | ||
| <PinReference pin="HI2" /> | ||
| <PinReference pin="HI3" /> | ||
| </PinGroup> | ||
| </PinGroups> | ||
| <Sites> | ||
| <Site siteNumber="0" /> | ||
| <Site siteNumber="1" /> | ||
| <Site siteNumber="2" /> | ||
| <Site siteNumber="3" /> | ||
| </Sites> | ||
| <Connections> | ||
| <Connection pin="HI0" siteNumber="0" instrument="PXI1Slot2" channel="0" /> | ||
| <Connection pin="HI0" siteNumber="1" instrument="PXI1Slot2" channel="1" /> | ||
| <Connection pin="HI0" siteNumber="2" instrument="PXI1Slot2" channel="2" /> | ||
| <Connection pin="HI0" siteNumber="3" instrument="PXI1Slot2" channel="3" /> | ||
| <Connection pin="HI1" siteNumber="0" instrument="PXI1Slot2" channel="4" /> | ||
| <Connection pin="HI1" siteNumber="1" instrument="PXI1Slot2" channel="5" /> | ||
| <Connection pin="HI1" siteNumber="2" instrument="PXI1Slot2" channel="6" /> | ||
| <Connection pin="HI1" siteNumber="3" instrument="PXI1Slot2" channel="7" /> | ||
| <Connection pin="HI2" siteNumber="0" instrument="PXI1Slot2" channel="8" /> | ||
| <Connection pin="HI2" siteNumber="1" instrument="PXI1Slot2" channel="9" /> | ||
| <Connection pin="HI2" siteNumber="2" instrument="PXI1Slot2" channel="10" /> | ||
| <Connection pin="HI2" siteNumber="3" instrument="PXI1Slot2" channel="11" /> | ||
| <Connection pin="HI3" siteNumber="0" instrument="PXI1Slot2" channel="12" /> | ||
| <Connection pin="HI3" siteNumber="1" instrument="PXI1Slot2" channel="13" /> | ||
| <Connection pin="HI3" siteNumber="3" instrument="PXI1Slot2" channel="15" /> | ||
| <Connection pin="HI3" siteNumber="2" instrument="PXI1Slot2" channel="14" /> | ||
| <Connection pin="LO0" siteNumber="0" instrument="PXI1Slot5" channel="16" /> | ||
| <Connection pin="LO0" siteNumber="1" instrument="PXI1Slot5" channel="17" /> | ||
| <Connection pin="LO0" siteNumber="2" instrument="PXI1Slot5" channel="18" /> | ||
| <Connection pin="LO0" siteNumber="3" instrument="PXI1Slot5" channel="19" /> | ||
| <Connection pin="LO1" siteNumber="0" instrument="PXI1Slot5" channel="20" /> | ||
| <Connection pin="LO1" siteNumber="1" instrument="PXI1Slot5" channel="21" /> | ||
| <Connection pin="LO1" siteNumber="2" instrument="PXI1Slot5" channel="22" /> | ||
| <Connection pin="LO1" siteNumber="3" instrument="PXI1Slot5" channel="23" /> | ||
| <Connection pin="LO2" siteNumber="0" instrument="PXI1Slot5" channel="24" /> | ||
| <Connection pin="LO2" siteNumber="1" instrument="PXI1Slot5" channel="25" /> | ||
| <Connection pin="LO2" siteNumber="2" instrument="PXI1Slot5" channel="26" /> | ||
| <Connection pin="LO2" siteNumber="3" instrument="PXI1Slot5" channel="27" /> | ||
| <Connection pin="LO3" siteNumber="0" instrument="PXI1Slot5" channel="28" /> | ||
| <Connection pin="LO3" siteNumber="1" instrument="PXI1Slot5" channel="29" /> | ||
| <Connection pin="LO3" siteNumber="2" instrument="PXI1Slot5" channel="30" /> | ||
| <Connection pin="LO3" siteNumber="3" instrument="PXI1Slot5" channel="31" /> | ||
| </Connections> | ||
| </PinMap> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/nidigital/templates/session.py/fancy_get_site_pass_fail.py.mako
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <%page args="f, config, method_template"/>\ | ||
| <% | ||
| '''Gets pass/fail results and site numbers corresponding to them, then returns | ||
| dictionary where each key is a site number and value is a bool indicating pass/fail''' | ||
| import build.helper as helper | ||
| %>\ | ||
| def ${f['python_name']}(${helper.get_params_snippet(f, helper.ParameterUsageOptions.SESSION_METHOD_DECLARATION)}): | ||
| '''${f['python_name']} | ||
|
|
||
| ${helper.get_function_docstring(f, False, config, indent=8)} | ||
| ''' | ||
| result_list = self._get_site_pass_fail(site_list) | ||
| site_list = self.get_site_results_site_numbers(site_list, enums.SiteResult.PASS_FAIL) | ||
| assert len(site_list) == len(result_list) | ||
|
|
||
| return dict(zip(site_list, result_list)) | ||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.