Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Useful updates for future improvement (#2)
* Included reading of transfer and elog channels at __init__ to update respective attributes with channels previously set at Oxygen * Included elogContext method to use elog start and stop in a with statement * Included missing ELOG timestamp for setElogTimestamp * Included _localElogStartTime attribute to track locally when Elog started * Included False return for fetchElog in case of error fetched * Fixed getTransferChannels timing out when there are no channels available * Removed unecessary logging when class is initialized by adding the "add_log" flag at _getTransferChannels and _getElogChannels. * Fixed fetchElog method splitting array unaccordingly when timestamp is set to OFF. Included attribute that stores the elog timestamp. * Included _convertElogArray method to convert matrix of strings from elog fetch into matrix of float (or datetime) values. * Included fetchElogAccumulated * Included elogTimestamp attribute at __init__ * Included error handling for elog example in case of timeout. * Increased continuous fetching waiting time for elogFetchAccumulate to 50ms and fixed timeout docstring. * Fixed fetchElogAccumulated not raising Exception for invalid timestamp configurations. * Included type annotations for some Elog functions. --------- Co-authored-by: Matthias Straka <[email protected]>
- Loading branch information