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 get_field and set_field methods to records #140

Merged
merged 3 commits into from
Nov 27, 2023

Conversation

AlexanderWells-diamond
Copy link
Collaborator

@AlexanderWells-diamond AlexanderWells-diamond commented Nov 22, 2023

These allow access to all EPICS attributes on a record.

Also add documentation and tests

Closes #139

Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (dad702c) 87.56% compared to head (906e058) 87.73%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #140      +/-   ##
==========================================
+ Coverage   87.56%   87.73%   +0.17%     
==========================================
  Files          14       14              
  Lines        1005     1019      +14     
==========================================
+ Hits          880      894      +14     
  Misses        125      125              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Nov 22, 2023

Unit Test Results

     15 files  ±  0       15 suites  ±0   26m 25s ⏱️ - 1m 11s
   277 tests +  4     261 ✔️ +  4    16 💤 ±0  0 ±0 
4 155 runs  +60  3 565 ✔️ +60  590 💤 ±0  0 ±0 

Results for commit 906e058. ± Comparison against base commit dad702c.

♻️ This comment has been updated with latest results.

@AlexanderWells-diamond AlexanderWells-diamond force-pushed the get_and_set_fields branch 2 times, most recently from 36f7f66 to 9c56552 Compare November 23, 2023 09:06
These allow access to all EPICS attributes on a record.

Also add documentation and tests
Copy link
Collaborator

@Araneidae Araneidae left a comment

Choose a reason for hiding this comment

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

Looks good to me.

If you need to set a field's value before that, set it directly as an attribute
on the record e.g. ``my_record.EGU``. (This will not work after the IOC is
initialized)

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's a shame that the same documentation has to be repeated verbatim here, but as discussed, the fix involves quite a big rework of this document. If anything, this is a job for another time.

softioc/extension.c Outdated Show resolved Hide resolved
softioc/extension.c Show resolved Hide resolved
softioc/imports.py Outdated Show resolved Hide resolved
This is required due to a side-effect of making the /stable endpoint
also redirect to the GHPages version of the docs - the objects.inv link
does not correctly survive the redirect.
@AlexanderWells-diamond AlexanderWells-diamond merged commit 906e058 into master Nov 27, 2023
38 checks passed
@Araneidae Araneidae deleted the get_and_set_fields branch December 13, 2023 06:58
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.

Allow .DISP to be changed from the ioc side
2 participants