Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed May 9, 2022
1 parent a992554 commit 1dfe134
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qcodes/instrument/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,13 @@ def invalidate_cache(self) -> None:
Calling this method will recursively mark the cache of all parameters
on the instrument and any parameter on instrument modules as invalid.
This is useful if you have performed manual operations (e.g. using the frontpanel)
This is useful if you have performed manual operations
(e.g. using the frontpanel)
which changes the state of the instrument outside QCoDeS.
This in turn means that the next snapshot of the instrument will trigger a (potentially slow)
reread of all parameters of the instrument.
This in turn means that the next snapshot of the instrument will trigger
a (potentially slow) reread of all parameters of the instrument if you pass
`update=None` to snapshot.
"""
for parameter in self.parameters.values():
parameter.cache.invalidate()
Expand Down

0 comments on commit 1dfe134

Please sign in to comment.