refactor: remove deprecated interfaces [ready for review]#312
Conversation
|
Removal of MpAuxiliaryInterface shall be discussed in next sync meeting. |
|
The review may take ages.... 45 files to review ^^ |
You maybe add some additionnal breaking changes by changing DTAuxiliaryInterface to AuxiliaryInterface. For any reason if a user want to use the interface for typehint, the merge of this branch will break the user's code. |
785f542 to
00323c1
Compare
There was a problem hiding this comment.
I would have expected the AuxiliaryInterface to be implemented here now, just like the Connector and CChannel interfaces
The dt_auxiliary module would then only contain the DTAuxiliaryInterface which will raise a warning
| active polling. | ||
| Note1: the data will automatically be saved | ||
| Note2: if proxy usage, all connectors should be 'CCMpProxy' | ||
| Note2: if proxy usage, all connectors should be 'CCProxy' |
There was a problem hiding this comment.
Didn't see that one... We'll still need to enable multiprocessing for this auxiliary, maybe by giving the possibility to see the Queue class of the CCProxy (queue.Queue or multiprocessing.Queue)
| log.internal_debug(f"called create_instance on {name}") | ||
| ################################################################################# | ||
| elif not inst.is_instance and auto_start: | ||
| if not inst.is_instance and auto_start: |
There was a problem hiding this comment.
As all auxiliaries now inherit from the same interface, we could remove the method existence check above and below to just do:
if not inst.is_instance and auto_start:
inst.start()| config["connectors"]["channel1"]["config"]["processing"] = True | ||
| cc_class = CCMpProxy | ||
| aux_class = MpProxyAuxiliary | ||
| cc_class = CCProxy |
There was a problem hiding this comment.
This should also be updated in config_registry.py
sebclrsn
left a comment
There was a problem hiding this comment.
Still some open points to clarify, either we merge this and tackle the leftover issues afterwards or we include them in this PR
| Double Threaded based Auxiliary Interface | ||
| ***************************************** | ||
|
|
||
| :module: auxiliary | ||
|
|
||
| :synopsis: base auxiliary interface | ||
| :synopsis: common double threaded based auxiliary interface | ||
|
|
||
| .. currentmodule:: pykiso | ||
|
|
||
| """ |
There was a problem hiding this comment.
Auxiliary common Interface Definition
*****************************************
:module: auxiliary
:synopsis: base auxiliary interface
.. currentmodule:: pykiso
"""
I think we can keep the original docstring
|
Just be careful when dealing with the merge conflicts to include the latest changes in the DTAuxiliaryInterface :) |
| self.multiprocess = multiprocess | ||
| self.cursor = 0 | ||
| self.log_folder_path = log_folder_path | ||
| self.multiprocess = multiprocess |
There was a problem hiding this comment.
Why do we keep it here?
There was a problem hiding this comment.
in line 143 it is checked if the channel is a CCProxy and if multiprocess was set to true.
There was a problem hiding this comment.
I still do not understand, we removed the multiprocessing, why not removing it from here too? What is the UC?
There was a problem hiding this comment.
yes, sorry for late reply. It would lead to a breaking change in the cchannel, in which the user can select multiprocessing
| self.multiprocess = multiprocess | ||
| self.cursor = 0 | ||
| self.log_folder_path = log_folder_path | ||
| self.multiprocess = multiprocess |
|
@flo117 , how are we doing here :) |
e39f7e7 to
c83f1bd
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #312 +/- ##
==========================================
- Coverage 97.11% 96.98% -0.14%
==========================================
Files 85 81 -4
Lines 6866 6426 -440
==========================================
- Hits 6668 6232 -436
+ Misses 198 194 -4 ☔ View full report in Codecov by Sentry. |
i removed all multiprocessing and done a rebase |
542e2f0 to
00b1f48
Compare
AuxiliaryCommon, MpAuxiliaryInterface, SimpleAuxiliaryInterface and AuxiliaryInterface have been removed. DTAuxiliaryInterface has been renamed to AuxiliaryInterface