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

Use timing and levels sheets name when applying rather than path #282

Merged
merged 3 commits into from
Jun 8, 2023

Conversation

jonathanmendez
Copy link
Contributor

What does this Pull Request accomplish?

Fixes Issue #259

The apply_levels_and_timing API allows the use of the file name (without extension) or the use of an absolute path. Since the file names are passed in as relative paths, while it is necessary to resolve to an absolute path if calling load_specifications_levels_and_timing, the name can be used when calling apply_levels_and_timing. This allows for when the files have been loaded from a different location at session initialization time, as is the case with the TestStand sequence.

Why should this Pull Request be merged?

Make the nidigital_spi example work in cases where the TestStand sequence initializes the session with files that are found in a different location than next to the measurement service.

What testing has been done?

Followed the steps to reproduce before the fix to see the error. Followed the steps to reproduce after the fix to see the sequence pass.

Copy link
Collaborator

@bkeryan bkeryan left a comment

Choose a reason for hiding this comment

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

Approved with suggestions

examples/nidigital_spi/measurement.py Outdated Show resolved Hide resolved
@jonathanmendez jonathanmendez force-pushed the users/jomendez/load-sheets-by-name branch from 839489b to b844fdb Compare June 8, 2023 16:36
@jonathanmendez
Copy link
Contributor Author

I revalidated the fix after my latest changes. Completing this PR.

@jonathanmendez jonathanmendez merged commit a67430f into main Jun 8, 2023
@dixonjoel dixonjoel deleted the users/jomendez/load-sheets-by-name branch August 16, 2023 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nidigital_spi example returns errors when the service and TestStand sequence are in different directories
3 participants