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

Add "When" attribute to start_trigger.py #481

Merged

Conversation

DeborahOoi96
Copy link
Collaborator

@DeborahOoi96 DeborahOoi96 commented Feb 1, 2024

What does this Pull Request accomplish?

Adds the when attribute to start_trigger.py. This will enable users to get and set the when attribute when using Start Trigger.
Implemented GetTrigAttributeTimestamp and SetTrigAttributeTimestamp as it seems start_trig_trig_when uses these functions when getting when attribute.
Also removed _lib_time from interpreters as this causes errors in unit testing.

Why should this Pull Request be merged?

Noticed this was not available when I was working on unit test for adding CfgTimeStartTrig function.

What testing has been done?

Manual validation that exported files are as expected.

Copy link
Collaborator

@zhindes zhindes left a comment

Choose a reason for hiding this comment

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

nothing more to add!

src/codegen/utilities/attribute_helpers.py Outdated Show resolved Hide resolved
src/codegen/metadata/attributes.py Show resolved Hide resolved
src/codegen/utilities/interpreter_helpers.py Show resolved Hide resolved
@DeborahOoi96 DeborahOoi96 requested a review from bkeryan February 2, 2024 04:59
@DeborahOoi96 DeborahOoi96 merged commit 53c8ef9 into ni:master Feb 5, 2024
15 of 16 checks passed
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.

3 participants