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

Enable controller initialisation on main event loop #49

Merged
merged 4 commits into from
Aug 8, 2024
Merged

Conversation

GDYendell
Copy link
Contributor

@GDYendell GDYendell commented Aug 7, 2024

Fixes #17

I have added #50 to resolve issues with the Tango backend caused / provoked by this change.

Add initialise method to base Controller to be called by Backend before
creating API Mapping.
Pull event loop into Backend base class to call controller initialise.
Update asyncio backend to use inheritance rather than composition.
Re-order methods
Copy link

codecov bot commented Aug 7, 2024

Codecov Report

Attention: Patch coverage is 82.85714% with 24 lines in your changes missing coverage. Please review.

Project coverage is 79.23%. Comparing base (178eb0a) to head (29b552f).

Files Patch % Lines
src/fastcs/backends/epics/ioc.py 80.00% 8 Missing ⚠️
src/fastcs/backend.py 93.05% 5 Missing ⚠️
src/fastcs/backends/epics/backend.py 54.54% 5 Missing ⚠️
src/fastcs/backends/tango/backend.py 62.50% 3 Missing ⚠️
src/fastcs/backends/asyncio_backend.py 71.42% 2 Missing ⚠️
src/fastcs/controller.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #49       +/-   ##
===========================================
+ Coverage   62.20%   79.23%   +17.03%     
===========================================
  Files          22       22               
  Lines         844      838        -6     
===========================================
+ Hits          525      664      +139     
+ Misses        319      174      -145     

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

@GDYendell GDYendell merged commit 8e04689 into main Aug 8, 2024
17 checks passed
@GDYendell GDYendell deleted the event-loop branch August 8, 2024 15:41
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.

Make a single asyncio loop and make it available for initialisation and pass to backends
1 participant