-
Notifications
You must be signed in to change notification settings - Fork 52
[WIP] Generic data recorder #1478
base: develop
Are you sure you want to change the base?
[WIP] Generic data recorder #1478
Conversation
@@ -42,6 +42,10 @@ Sardana provides the following standard recorders (grouped by types): | |||
* JsonRecorder [*] | |||
* OutputRecorder | |||
|
|||
* generic [*] | |||
.. TODO Need to document the implementation and configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need at least one blank line before the .. TODO
comment otherwise travis complains
Thanks @jordiandreu and @tiagocoutinho for working on this PR! Also, there is the environment variables catalgue which would need to be updated with the new environment variable. Regarding the implementation, do you foresee to parametrize somehow the initialization of the recorder class? Like for example the file recorders they receive the path to the file? |
Yes, the idea was that each recorder would be responsible to figure out which parameters it needs to configure itself. |
Perfect! Thanks for the clarification! |
When reviewing issues I just found again #1274, which I think would benefit from this PR. @aureocarneiro, @13bscsaamjad how were you configuring the KafkaRecorder mentioned in #1274 (comment)? |
we have found that if you put multiple ScanFile and ScanRecorder, sardana uses them all sequentially. the catch is to have same number of ScanFile as ScanRecorder. we only tested with two though. embedding the example config.
|
Sorry if I have not understood what you mean, we use at DESY very very oft several recorders and the scanfile is the same |
@teresanunez there are no plans to change/remove activation of file recorders based on the file extension. Thanks for sharing your configuration @13bscsaamjad. |
@reszelaz yes exactly. |
Implements a mechanism to register a custom-user generic data recorder. The mechanism enables the possibility to register one or more custom data recorders. The recorders get configured by setting the sardana environment variable DataRecorder with one or more recorder class names.
Documentation about the implementation and configuration of a custom data recorder still missing.