DiamondLightSource / DiamondLightSource/pythonSoftIOC

Provide mechanism to get record type

Offen
#52 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Python
Sterne
46
Forks
15
Ø Merge
1 T. 18 Std.
Gemergte PRs (30 T.)
1

Beschreibung

It would be convenient to have some method on a `RecordWrapper` that allows retrieving the record's type. For example, a `get_type()` record might return a string `ao`, to say that this record is an Analog Out type, or `bi` for Boolean In, etc.

This would allow users to query `RecordWrapper` instances dynamically to know what keyword arguments `set()` allows, for example.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.