Exceptions and Safe API Calls
Use Python exceptions to handle unavailable APIs in GX-TXT. See a controlled example of raising, catching and reporting an error.
Use Python exceptions to handle unavailable APIs in GX-TXT. See a controlled example of raising, catching and reporting an error.
Work with Python lists, tuples, indices and slices. Use a small set of synthetic readings and inspect available GX-TXT APIs.
Organize data with Python dictionaries, inspect a GX-TXT API descriptor, and read optional fields safely with get.
Distinguish integers, floats and booleans in Python. Calculate an acquisition duration from the sample count and sampling interval in GX-TXT.
Use Python strings, Unicode and f-strings to format values and units in a readable scientific report generated in GX-TXT.
Write and run your first Python script in GX-TXT. Learn to use print and import, save code in the Session, and read the Script Runner output.