Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Smaller changes to parameters (#788)
* fix:save scaled value, perform initial get * fix: self.get return raw_value when possible * fix: the get function when get_cmd=None did not take any scaling into account * fix: pop raw_value when snapshot_value=False * fix: return self._latest['value'] if self.scale is None * fix:save scaled value, perform initial get * fix: self.get return raw_value when possible * fix: the get function when get_cmd=None did not take any scaling into account * fix: pop raw_value when snapshot_value=False * fix: return self._latest['value'] if self.scale is None * add test of paramter issue * Add tests cleanup * try to write parameter code a bit cleaner * annotate parameters * fix typechecking * set private variable in init This is how the official documentation does it and avoids a number of linter warnings * Rename unwrapped get to get_raw to avoid confusion * transform to step size before mapping, scaling and parsing@ * one ome deprecate ManualParameter * revert setting parameter via _private value * Try to wrap get/set_raw first in baseclass
- Loading branch information
1 parent
6433dbc
commit 6bfb22d
Showing
3 changed files
with
138 additions
and
55 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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