Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: gds fix #537

Merged
merged 8 commits into from
Jun 7, 2024
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/pyedb/dotnet/edb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,12 +1527,11 @@ def import_gds_file(
``True`` when successful, ``False`` when failed.

"""
if tech_file or map_file:
control_file_temp = os.path.join(tempfile.gettempdir(), os.path.split(inputGDS)[-1][:-3] + "xml")
ControlFile(xml_input=control_file, tecnhology=tech_file, layer_map=map_file).write_xml(control_file_temp)
elif tech_file:
if is_linux and tech_file:
gkorompi marked this conversation as resolved.
Show resolved Hide resolved
self.logger.error("Technology files are supported only in Linux. Use control file instead.")
gkorompi marked this conversation as resolved.
Show resolved Hide resolved
return False
control_file_temp = os.path.join(tempfile.gettempdir(), os.path.split(inputGDS)[-1][:-3] + "xml")
ControlFile(xml_input=control_file, tecnhology=tech_file, layer_map=map_file).write_xml(control_file_temp)
if self.import_layout_pcb(
inputGDS,
working_dir=WorkDir,
Expand Down
Loading