fix(deps): update dependency fastcs to v0.12.0#49
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Conversation
dfac3bf to
50313c4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.12.0a1→==0.12.0Release Notes
DiamondLightSource/fastcs (fastcs)
v0.12.0Compare Source
Breaking Changes
EpicsCAIOCoptionsparameter removed - Theoptionsparameter has been removed fromEpicsCAIOC(pv_prefix, controller_api, options=...)AttrR.update()validates before calling callbacks - If validation fails, an error is logged and the value is not updated.DATATYPE_DTYPESremoved - Replaced by theDTypeunion.DTypeinstead.bind_loggerremoved from public API -bind_loggerhas been removedfrom fastcs.logging import bind_logger; bind_logger(...)->from fastcs.logging import loggerControllerVectoris now generic onController_TControllerVectormust now be parameterised with a specificControlleradd_on_update_callback(always=False)-alwaysflag added toAttrR.add_on_update_callbackto let callbacks fire even when the value hasn't changed. The default is now to not fire the callback if the value has not changed, the previous behaviour wasalways=True.Fixes
AttrRWsetpoint callbacks called with validated value - Sync setpoint callbacks inAttrRWnow receiveself._value(the validated value) rather than the raw input.New Features
AttrR.wait_for_value/wait_for_predicate- New async methods onAttrRto block until an attribute reaches a target value or satisfies a custom predicate, with a timeout.DataType.equal/DataType.all_equal- Static helper methods on allDataTypesubclasses to compare values correctly (e.g. usingnp.array_equalfor array types).DTypeunion type - Replaces the oldDATATYPE_DTYPEStuple.DTypeis a proper union type alias;DType_Tis nowTypeVar("DType_T", bound=DType).Controller.reconnect, rather than requiring restarting the entire application.Controller.connectmethods must now setself._connected = True, andController.reconnectshould be implemented to restore the connection for scan tasks - by defaultreconnectwill just start the scan tasks againreconnect()can be called in the interactive shell, or a driver can implement a@scanmethod that checks for disconnect and automatically handles reconnection.Other
FastCS→fastcsWhat's Changed
<in logging extras so they aren't treated as colour tags by @GDYendell in #279@commandmethods by @GDYendell in #293alwaysflag to add_on_update_callback by @shihab-dls in #311New Contributors
Full Changelog: DiamondLightSource/fastcs@0.11.3...0.12.0
v0.12.0a2Compare Source
What's Changed
alwaysflag to add_on_update_callback by @shihab-dls in DiamondLightSource/FastCS#311New Contributors
Full Changelog: DiamondLightSource/fastcs@0.12.0a1...0.12.0a2
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.