Skip to content

Update fastcs-odin to use ControllerVector - #80

Merged
GDYendell merged 11 commits into
mainfrom
32_remove_duplicates_in_pvs
Nov 18, 2025
Merged

GDYendell merged 11 commits into
mainfrom
32_remove_duplicates_in_pvs

Conversation

@shihab-dls

Copy link
Copy Markdown
Collaborator

Closes #32

This PR removes separates out the controller hierarchy of controller adapters and controllers, allowing some controller adapters to be ControllerVectors (i.e., FP and FR). This removes the duplicate sub controller name from PVs.

@shihab-dls
shihab-dls force-pushed the 32_remove_duplicates_in_pvs branch from ba9cd7b to 3a73332 Compare November 12, 2025 16:12
@codecov

codecov Bot commented Nov 12, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.05825% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.15%. Comparing base (6982aed) to head (635f0f6).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/fastcs_odin/__main__.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #80      +/-   ##
==========================================
+ Coverage   87.87%   88.15%   +0.27%     
==========================================
  Files          14       14              
  Lines         561      574      +13     
==========================================
+ Hits          493      506      +13     
  Misses         68       68              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@GDYendell GDYendell linked an issue Nov 13, 2025 that may be closed by this pull request
Base automatically changed from mw-ef-parameters to main November 13, 2025 10:08
@shihab-dls
shihab-dls marked this pull request as ready for review November 13, 2025 11:13
@shihab-dls
shihab-dls requested a review from GDYendell November 13, 2025 11:13
Comment thread src/fastcs_odin/eiger_fan.py Resolved
Comment thread src/fastcs_odin/frame_processor.py Resolved
Comment thread src/fastcs_odin/frame_processor.py Resolved
Comment thread src/fastcs_odin/frame_processor.py Resolved
Comment thread src/fastcs_odin/odin_controller.py Resolved
Comment thread src/fastcs_odin/util.py Resolved
@shihab-dls

Copy link
Copy Markdown
Collaborator Author

I've opted to keep create_attributes as a free function in util, and just add:

    async def initialise(self):
        for parameter in self.parameters:
            self.add_attribute(
                parameter.name,
                create_attribute(parameter=parameter, api_prefix=self._api_prefix),
            )

to OdinSubController, so that we can use the same function for OdinDataAdapterController

@shihab-dls
shihab-dls requested a review from GDYendell November 17, 2025 17:39
Comment thread src/fastcs_odin/frame_receiver.py Resolved
@shihab-dls
shihab-dls force-pushed the 32_remove_duplicates_in_pvs branch from 61aca7c to 8f1db50 Compare November 18, 2025 14:24
@GDYendell
GDYendell force-pushed the 32_remove_duplicates_in_pvs branch from 8f1db50 to 635f0f6 Compare November 18, 2025 14:34
@GDYendell
GDYendell merged commit b508374 into main Nov 18, 2025
@GDYendell
GDYendell deleted the 32_remove_duplicates_in_pvs branch November 18, 2025 14:39
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.

Remove duplicated FP in PVs

2 participants