gdstk.gds_units

gdstk.gds_units(infile) tuple

Read the unit and precision of a GDSII file.

Parameters:

infile (str or pathlib.Path) – Name of the input file.

Returns:

Tuple with the unit and precision of the library in the file.