Commit Graph
690 Commits
Author SHA1 Message Date
Matthias Köfferlein 3937a1f4ed Merge pull request #2431 from KLayout/bugfix/issue-2429
Bugfix: Fixing issue #2429 (PEX error)
2026-08-23 14:03:58 +02:00
Matthias Koefferlein 88568c8983 Fixing unit tests 2026-08-23 10:05:43 +02:00
Matthias Koefferlein 2e2af5cc4c Removing debug code 2026-08-22 23:25:16 +02:00
Matthias Koefferlein e8e2f981fe Fixing tests for Ruby <3.0.0 2026-08-22 23:21:01 +02:00
Matthias Köfferlein 9680621256 Merge pull request #2426 from KLayout/bugfix/issue-2419
Fixing issue #2419 (arc and angle ruler bbox considers interpolated c…
2026-08-21 23:11:06 +02:00
Matthias Koefferlein fcbb8c8e4e Adding tests 2026-08-20 18:14:28 +02:00
Matthias Koefferlein 64497a0361 Merge branch 'master' into wip 2026-08-20 11:23:50 +02:00
Matthias Koefferlein e22aeea494 WIP: debugging, added const version of parameter getter 2026-08-17 18:54:52 +02:00
Matthias Koefferlein ca92d1c042 Fixed tests for Ruby 2 2026-08-15 20:58:44 +02:00
Matthias Koefferlein 005edf7370 Maybe fixing tests for Windows 2026-08-15 14:42:06 +02:00
Matthias Koefferlein f8b83357e1 Fixing strange behavior of user property generation with Python
Problem was that integers are converted to "long long"
in Python, which creates Variants rendering "#l1" as
parsable strings. These are marked as invalid by the
Syntax highlighter of the user properties editor.

This patch fixes the user properties editor syntax
highlighter to cover all Variant variants and
uses "long" type for Variant if possible.
2026-08-10 00:09:42 +02:00
Matthias Koefferlein 52a96a618c Refinement
* Option added to buddy tools ("lefdef-skip-duplicate-macros")
* Properly adding to GSI
* Tests for GSI binding in LoadLayoutOptions
2026-08-05 18:29:23 +02:00
Matthias Koefferlein 5055d4fcf4 Merge remote-tracking branch 'origin/master' into wip 2026-07-20 23:20:47 +02:00
Matthias Koefferlein b51187bf7c Merge branch 'master' into wip 2026-07-19 15:13:40 +02:00
Matthias Koefferlein ca61d8d4af Fixing issue #2392 (PCell rebinding fails aber technology change)
The bug was that the rebinding by name did not happen
because the name was looked up in the wrong layout.

A testcase has been added to test proper PCell rebinding
in case of technology switches.
2026-07-18 15:44:25 +02:00
Kirill Osipov 9a606ec4e9 Cap PixelBuffer.from_bytes dimensions at 64k x 64k
Following review feedback, the reader now rejects a header claiming a
width or height beyond 65536, guarding against malformed byte streams
that would otherwise trigger an unreasonable allocation. The writer
stays full 32-bit ('unlimited'), and native little-endian order and the
transparency mask are kept as-is. Adds Ruby and Python tests for the
oversized-header rejection.

Ref: https://github.com/KLayout/klayout/pull/2387#issuecomment-4984941409
2026-07-16 19:03:34 +02:00
Kirill Osipov 2fa7b24345 Add PixelBuffer#from_bytes and width/height header to to_bytes 2026-07-16 19:03:34 +02:00
Matthias Koefferlein abe9479ced Bugfix: removing a pin from a Circuit does not crash if the pin was not disconnected before. Now it's disconnected automatically. 2026-07-12 00:14:30 +02:00
Matthias Koefferlein 1cd9cbc8ba Enhancement: using PCell parameter 'name' won't break PCell's cell_name_impl default implementation 2026-07-11 22:32:42 +02:00
Matthias Koefferlein b2afb55fe3 Convenience constructor for Layout from a cell (hierarchical copy) 2026-07-11 21:56:02 +02:00
Matthias Koefferlein 0648ee1bd0 Merge branch 'wip' 2026-05-24 15:26:19 +02:00
Matthias Koefferlein c85be6bce5 Adding string serialization "from_s" for objects with properties (CAUTION: side effect!)
Problem was that "to_s" did not deliver a parsable string for the
properties. This is fixed, but the format of the properties part
of the string changes.
2026-05-03 20:27:15 +02:00
Matthias Koefferlein 77fb74e072 Supporting to_bytes and from_bytes also for the ..WithProperties types 2026-05-03 18:10:00 +02:00
Matthias Koefferlein fdaa93d234 First implementation of to_bytes/from_bytes for Vector,Point,Box,Polygon,SimplePolygon,Trans,CplxTrans,Text,Path,Edge,EdgePair and variants 2026-05-02 23:21:35 +02:00
Matthias Koefferlein 1740523092 Introducing a number of convenience methods for Layout
* Layout#delete_cells with a list of cell object
* Layout#delete_cell_rec with a cell object
* Layout#prune_cell with a cell object
* Layout#prune_cells for pruning multiple cells in one call
* Layout#prune_subcells with a cell object
* Layout#prune_subcells with multiple root cells
* Layout#flatten with a cell object
* Layout#flatten_into with cell objects
* Layout#delete_cell with a cell object
* Default value "all" for "levels" argument in "prune_subcells" and "prune_cell"
* Default value "all" for "levels" and "true" for "prune" argument in "flatten"
* Default value "all" for "levels" and "unity" for "trans" argument in "flatten_into"
2026-05-02 15:46:29 +02:00
Matthias Koefferlein 0728feba33 Bugfix: rbaTests:dbPCellTests were disabled, added tests for new features for cold proxies 2026-05-02 00:20:57 +02:00
Matthias Koefferlein f70c3abff5 Fixed unit tests 2026-04-14 20:29:04 +02:00
Matthias Köfferlein 0fdce69579 Merge pull request #2304 from KLayout/bugfix/issue-2299
Bugfix/issue 2299
2026-04-14 08:59:07 +02:00
Matthias Köfferlein 72c4af9f94 Merge pull request #2308 from KLayout/bugfix/issue-2305
Bugfix/issue 2305
2026-04-14 08:57:19 +02:00
Matthias Koefferlein 1abfd5363e Fixed an infinite loop 2026-04-03 00:30:01 +02:00
Matthias Koefferlein c03a617fe2 Added some tests for the netlist browser API 2026-03-23 21:42:49 +01:00
Matthias Koefferlein f501f039c0 Added tests and two convenience methods
The two convenience methods are

Library#library_from_file
Library#library_from_files

Both create and register a Library object tied to a file.
This object supports proper reloading and re-mapping on
"refresh".
2026-03-21 14:59:08 +01:00
Matthias Koefferlein f127ec9843 Updating test data 2026-03-18 21:01:18 +01:00
Matthias Köfferlein e82d2140b3 Merge pull request #2280 from KLayout/wip
Wip
2026-03-04 18:46:10 +01:00
Matthias Köfferlein 9b5c76f993 Merge pull request #2290 from KLayout/feature/issue-2248
Providing a solution for #2248
2026-03-03 22:38:31 +01:00
Matthias Köfferlein abc1ffe9f6 Merge pull request #2276 from KLayout/bugfix/issue-2273
Bugfix/issue 2273
2026-03-01 23:25:22 +01:00
Matthias Koefferlein aaa165df32 Providing a solution for #2248
The solution is to introduce a new object, the layout handle.
A layout handle is a reference counting pointer to a layout.
It can be obtained from a cell view and stored somewhere.
If the cell view is closed, the layout will still exists
as long as a layout handle exists. A layout handle can be
used in LayoutView#show_layout in addition to the Layout
object to re-open a layout that existed in a closed view.
2026-03-01 21:13:40 +01:00
Matthias Koefferlein 992947f748 ReportDatabase#merge - a method to merge two report databases 2026-03-01 17:39:29 +01:00
Matthias Koefferlein 125f3b459f Added a marker attribute to turn off label frames: Marker#text_frame_enabled. Set it to false to disable the frame 2026-02-24 22:10:05 +01:00
Matthias Koefferlein 4e142627b6 added test 2026-02-14 19:44:24 +01:00
Matthias Koefferlein 56fdbca1f5 Updating copyright to 2026 2026-02-07 17:12:53 +01:00
Matthias Koefferlein 65fd3f3e50 Providing a fix for issue #2267
1. The script API "map_file" attribute has been changed
   to accept and supply nil (for no file), a string (for
   a file, empty is equivalent to "no file") and a list
   for multiple files which are merged. The split at "+"
   or "," has been dropped.
2. The strm* tools option ("--lefdef-map") has been changed
   to allow multiple occurances instead of split at "+" or ",".
2026-02-05 23:21:04 +01:00
Matthias Koefferlein f68d02c6f3 Merge branch 'master' into wip 2026-02-05 22:05:24 +01:00
Matthias Koefferlein 955c917783 Fixing unit tests (RBA ant objects) 2026-01-31 23:01:57 +01:00
Matthias Koefferlein a0ca8febe5 Fixed unit test 2026-01-15 01:41:00 +01:00
Matthias Koefferlein 38ddffc645 L2N log entries with net references
* Log entries on the L2N object can now have net references
  (by expanded name) and the nets will be highlighted
  when the log entry is selected in the netlist browser
  For an application see drcSimpleTests:147.
* New function ("db") in evaluate_nets
* BUGFIX: proper computation of transformations for multiple
  selections of nets in netlist browser
2026-01-04 22:48:35 +01:00
Matthias Koefferlein 8b010d61d2 Trying to fix unit tests 2025-10-26 22:25:28 +01:00
Matthias Koefferlein fc3185165f Added some tests 2025-10-25 17:16:13 +02:00
Matthias Köfferlein 0ce335d8cf Merge pull request #2192 from KLayout/bugfix/issue-2191
Implemented a fix for issue #2191 (LIBNAME not saved)
2025-10-19 19:45:37 +02:00
Matthias Koefferlein 6a871f3432 Added tests 2025-10-19 16:41:45 +02:00