From dfa02d7c4e468595fe89ed0ed5a3101d13d2b32c Mon Sep 17 00:00:00 2001 From: gkorompi Date: Tue, 4 Jun 2024 13:16:05 +0300 Subject: [PATCH 1/3] FIX: gds fix --- src/pyedb/dotnet/edb.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pyedb/dotnet/edb.py b/src/pyedb/dotnet/edb.py index 59a86576d0..ef35d06932 100644 --- a/src/pyedb/dotnet/edb.py +++ b/src/pyedb/dotnet/edb.py @@ -1523,12 +1523,8 @@ 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: - self.logger.error("Technology files are supported only in Linux. Use control file instead.") - 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, From 05c6d59b28c5905f854736a8ca9db0131f0d8fe1 Mon Sep 17 00:00:00 2001 From: gkorompi Date: Thu, 6 Jun 2024 12:40:52 +0300 Subject: [PATCH 2/3] FIX: gds fix --- src/pyedb/dotnet/edb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pyedb/dotnet/edb.py b/src/pyedb/dotnet/edb.py index ef35d06932..3dc0193729 100644 --- a/src/pyedb/dotnet/edb.py +++ b/src/pyedb/dotnet/edb.py @@ -1523,6 +1523,9 @@ def import_gds_file( ``True`` when successful, ``False`` when failed. """ + if is_linux and tech_file: + self.logger.error("Technology files are supported only in Linux. Use control file instead.") + 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( From 23e31a86bdbdfd12be19bfc60d9ac73d50770e16 Mon Sep 17 00:00:00 2001 From: gkorompi <156683163+gkorompi@users.noreply.github.com> Date: Fri, 7 Jun 2024 14:14:12 +0300 Subject: [PATCH 3/3] Update src/pyedb/dotnet/edb.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sébastien Morais <146729917+SMoraisAnsys@users.noreply.github.com> --- src/pyedb/dotnet/edb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyedb/dotnet/edb.py b/src/pyedb/dotnet/edb.py index 9fadea4309..3c31a315bc 100644 --- a/src/pyedb/dotnet/edb.py +++ b/src/pyedb/dotnet/edb.py @@ -1527,7 +1527,7 @@ def import_gds_file( ``True`` when successful, ``False`` when failed. """ - if is_linux and tech_file: + if not is_linux and tech_file: self.logger.error("Technology files are supported only in Linux. Use control file instead.") return False control_file_temp = os.path.join(tempfile.gettempdir(), os.path.split(inputGDS)[-1][:-3] + "xml")