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 structure to SubController hierarchy #45

Merged
merged 3 commits into from
Jul 24, 2024
Merged

Conversation

GDYendell
Copy link
Contributor

Store sub controllers in a dictionary by path. This enables a Controller to introspect its SubControllers and their parmeters to perform higher level logic, such as fanning out configuration or creating Attributes that give a summary of underlying state (e.g. sum(), any(), all()).

Add some exception handling.

Copy link

codecov bot commented Jul 24, 2024

Codecov Report

Attention: Patch coverage is 68.00000% with 8 lines in your changes missing coverage. Please review.

Project coverage is 61.73%. Comparing base (844d3df) to head (788ecf6).

Files Patch % Lines
src/fastcs/backend.py 0.00% 5 Missing ⚠️
src/fastcs/backends/epics/gui.py 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #45      +/-   ##
==========================================
+ Coverage   56.18%   61.73%   +5.55%     
==========================================
  Files          22       22              
  Lines         817      831      +14     
==========================================
+ Hits          459      513      +54     
+ Misses        358      318      -40     

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

@GDYendell GDYendell force-pushed the sub-controller-structure branch 2 times, most recently from 3237ce7 to a31a9c2 Compare July 24, 2024 14:31
Store sub controllers in a dictionary by path. This enables a Controller
to introspect its SubControllers and their parameters to perform higher
level logic, such as fanning out configuration or creating Attributes
that give a summary of underlying state (e.g. sum(), any(), all()).

Add some exception handling.
Refactor to make it easier to test (and more sensible).
@GDYendell GDYendell merged commit 151f217 into main Jul 24, 2024
17 checks passed
@GDYendell GDYendell deleted the sub-controller-structure branch July 24, 2024 14:38
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.

1 participant