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

Move zmqServer, sqlLogger and streamMaster out of Root class #931

Merged
merged 17 commits into from
May 5, 2023

Conversation

slacrherbst
Copy link
Contributor

@slacrherbst slacrherbst commented Apr 20, 2023

In the future the Root class will be interface agnostic. As such it is not appropriate to continue to support a Root resident ZmqServer, SqlLogger or StreamMaster interface. Instead these will be treated as generic variableListeners which are created separately and added to the root class.

For a transition period the previous methods will be support with deprecation warnings generated when the legacy methods for creating these interfaces are used.

This new method will allow for more customization of these interfaces, as well as adding new interfaces, streamers and loggers to the Root class.

This is a RogueV6 Change.

@codecov-commenter
Copy link

codecov-commenter commented Apr 21, 2023

Codecov Report

Merging #931 (e353239) into rogue_v6 (3dcc514) will decrease coverage by 0.15%.
The diff coverage is 23.97%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##           rogue_v6     #931      +/-   ##
============================================
- Coverage     29.66%   29.52%   -0.15%     
============================================
  Files            65       66       +1     
  Lines          6853     6903      +50     
  Branches       1069     1061       -8     
============================================
+ Hits           2033     2038       +5     
- Misses         4657     4708      +51     
+ Partials        163      157       -6     
Impacted Files Coverage Δ
python/pyrogue/examples/_ExampleRoot.py 0.00% <0.00%> (ø)
python/pyrogue/examples/__main__.py 0.00% <0.00%> (ø)
python/pyrogue/pydm/__init__.py 0.00% <0.00%> (ø)
python/pyrogue/utilities/fileio/_StreamWriter.py 43.13% <12.50%> (-1.77%) ⬇️
python/pyrogue/_Root.py 51.14% <23.28%> (-3.48%) ⬇️
python/pyrogue/interfaces/_SqlLogging.py 17.44% <27.27%> (ø)
python/pyrogue/interfaces/_ZmqServer.py 22.44% <28.57%> (-5.33%) ⬇️
python/pyrogue/interfaces/stream/_Variable.py 34.78% <34.78%> (ø)
python/pyrogue/_Device.py 45.41% <100.00%> (+0.53%) ⬆️
python/pyrogue/interfaces/stream/__init__.py 100.00% <100.00%> (+100.00%) ⬆️

... and 1 file with indirect coverage changes

@@ -95,20 +104,11 @@ def insert_from_q(self, entry, conn):
path=entry[0],
enum=str(entry[1].enum),
disp=entry[1].disp,
value=value,
value=str(value),
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be useful to store real values in the DB if possible. SQLite allows non-conforming types, so the value column could have int, float or string depending on the row.

@slacrherbst slacrherbst merged commit e3ba794 into rogue_v6 May 5, 2023
@slacrherbst slacrherbst deleted the ext_ifaces branch May 5, 2023 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants