kqcircuits.util.export_helper¶
- kqcircuits.util.export_helper.flip(point, origin=0, 0)[source]¶
Gets correct flip chip coordinates by setting a new origin and mirroring
point
by the y-axis.
- kqcircuits.util.export_helper.create_or_empty_tmp_directory(dir_name)[source]¶
Creates directory into TMP_PATH or removes its content if it exists. Returns directory path.
- kqcircuits.util.export_helper.get_active_or_new_layout()[source]¶
Tries to return active layout in GUI or returns new layout when running standalone.
- kqcircuits.util.export_helper.write_commit_reference_file(path: pathlib.Path, write_versions_file=True)[source]¶
Writes file COMMIT_REFERENCE into given file path. The file includes current git revision number. If git repository is not found in given path, no file is written.
- kqcircuits.util.export_helper.write_export_machine_versions_file(path: pathlib.Path)[source]¶
Writes file EXPORT_MACHINE_VERSIONS into given file path.
- kqcircuits.util.export_helper.open_with_klayout_or_default_application(filepath)[source]¶
Tries to open file with Klayout. If Klayout is not found, opens file with operating system’s default application. Implementation supports Windows, macOS, and Linux.
