diff --git a/pycov/class_index.html b/pycov/class_index.html
new file mode 100644
index 00000000..e469b024
--- /dev/null
+++ b/pycov/class_index.html
@@ -0,0 +1,795 @@
+
+
+
+
+ Coverage report
+
+
+
+
+
+
+
+
+
+ No items found using the specified filter.
+
+
+
+
+
diff --git a/pycov/coverage_html_cb_497bf287.js b/pycov/coverage_html_cb_497bf287.js
new file mode 100644
index 00000000..1a98b600
--- /dev/null
+++ b/pycov/coverage_html_cb_497bf287.js
@@ -0,0 +1,733 @@
+// Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+// For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
+
+// Coverage.py HTML report browser code.
+/*jslint browser: true, sloppy: true, vars: true, plusplus: true, maxerr: 50, indent: 4 */
+/*global coverage: true, document, window, $ */
+
+coverage = {};
+
+// General helpers
+function debounce(callback, wait) {
+ let timeoutId = null;
+ return function(...args) {
+ clearTimeout(timeoutId);
+ timeoutId = setTimeout(() => {
+ callback.apply(this, args);
+ }, wait);
+ };
+};
+
+function checkVisible(element) {
+ const rect = element.getBoundingClientRect();
+ const viewBottom = Math.max(document.documentElement.clientHeight, window.innerHeight);
+ const viewTop = 30;
+ return !(rect.bottom < viewTop || rect.top >= viewBottom);
+}
+
+function on_click(sel, fn) {
+ const elt = document.querySelector(sel);
+ if (elt) {
+ elt.addEventListener("click", fn);
+ }
+}
+
+// Helpers for table sorting
+function getCellValue(row, column = 0) {
+ const cell = row.cells[column] // nosemgrep: eslint.detect-object-injection
+ if (cell.childElementCount == 1) {
+ var child = cell.firstElementChild;
+ if (child.tagName === "A") {
+ child = child.firstElementChild;
+ }
+ if (child instanceof HTMLDataElement && child.value) {
+ return child.value;
+ }
+ }
+ return cell.innerText || cell.textContent;
+}
+
+function rowComparator(rowA, rowB, column = 0) {
+ let valueA = getCellValue(rowA, column);
+ let valueB = getCellValue(rowB, column);
+ if (!isNaN(valueA) && !isNaN(valueB)) {
+ return valueA - valueB;
+ }
+ return valueA.localeCompare(valueB, undefined, {numeric: true});
+}
+
+function sortColumn(th) {
+ // Get the current sorting direction of the selected header,
+ // clear state on other headers and then set the new sorting direction.
+ const currentSortOrder = th.getAttribute("aria-sort");
+ [...th.parentElement.cells].forEach(header => header.setAttribute("aria-sort", "none"));
+ var direction;
+ if (currentSortOrder === "none") {
+ direction = th.dataset.defaultSortOrder || "ascending";
+ }
+ else if (currentSortOrder === "ascending") {
+ direction = "descending";
+ }
+ else {
+ direction = "ascending";
+ }
+ th.setAttribute("aria-sort", direction);
+
+ const column = [...th.parentElement.cells].indexOf(th)
+
+ // Sort all rows and afterwards append them in order to move them in the DOM.
+ Array.from(th.closest("table").querySelectorAll("tbody tr"))
+ .sort((rowA, rowB) => rowComparator(rowA, rowB, column) * (direction === "ascending" ? 1 : -1))
+ .forEach(tr => tr.parentElement.appendChild(tr));
+
+ // Save the sort order for next time.
+ if (th.id !== "region") {
+ let th_id = "file"; // Sort by file if we don't have a column id
+ let current_direction = direction;
+ const stored_list = localStorage.getItem(coverage.INDEX_SORT_STORAGE);
+ if (stored_list) {
+ ({th_id, direction} = JSON.parse(stored_list))
+ }
+ localStorage.setItem(coverage.INDEX_SORT_STORAGE, JSON.stringify({
+ "th_id": th.id,
+ "direction": current_direction
+ }));
+ if (th.id !== th_id || document.getElementById("region")) {
+ // Sort column has changed, unset sorting by function or class.
+ localStorage.setItem(coverage.SORTED_BY_REGION, JSON.stringify({
+ "by_region": false,
+ "region_direction": current_direction
+ }));
+ }
+ }
+ else {
+ // Sort column has changed to by function or class, remember that.
+ localStorage.setItem(coverage.SORTED_BY_REGION, JSON.stringify({
+ "by_region": true,
+ "region_direction": direction
+ }));
+ }
+}
+
+// Find all the elements with data-shortcut attribute, and use them to assign a shortcut key.
+coverage.assign_shortkeys = function () {
+ document.querySelectorAll("[data-shortcut]").forEach(element => {
+ document.addEventListener("keypress", event => {
+ if (event.target.tagName.toLowerCase() === "input") {
+ return; // ignore keypress from search filter
+ }
+ if (event.key === element.dataset.shortcut) {
+ element.click();
+ }
+ });
+ });
+};
+
+// Create the events for the filter box.
+coverage.wire_up_filter = function () {
+ // Populate the filter and hide100 inputs if there are saved values for them.
+ const saved_filter_value = localStorage.getItem(coverage.FILTER_STORAGE);
+ if (saved_filter_value) {
+ document.getElementById("filter").value = saved_filter_value;
+ }
+ const saved_hide100_value = localStorage.getItem(coverage.HIDE100_STORAGE);
+ if (saved_hide100_value) {
+ document.getElementById("hide100").checked = JSON.parse(saved_hide100_value);
+ }
+
+ // Cache elements.
+ const table = document.querySelector("table.index");
+ const table_body_rows = table.querySelectorAll("tbody tr");
+ const no_rows = document.getElementById("no_rows");
+
+ // Observe filter keyevents.
+ const filter_handler = (event => {
+ // Keep running total of each metric, first index contains number of shown rows
+ const totals = new Array(table.rows[0].cells.length).fill(0);
+ // Accumulate the percentage as fraction
+ totals[totals.length - 1] = { "numer": 0, "denom": 0 }; // nosemgrep: eslint.detect-object-injection
+
+ var text = document.getElementById("filter").value;
+ // Store filter value
+ localStorage.setItem(coverage.FILTER_STORAGE, text);
+ const casefold = (text === text.toLowerCase());
+ const hide100 = document.getElementById("hide100").checked;
+ // Store hide value.
+ localStorage.setItem(coverage.HIDE100_STORAGE, JSON.stringify(hide100));
+
+ // Hide / show elements.
+ table_body_rows.forEach(row => {
+ var show = false;
+ // Check the text filter.
+ for (let column = 0; column < totals.length; column++) {
+ cell = row.cells[column];
+ if (cell.classList.contains("name")) {
+ var celltext = cell.textContent;
+ if (casefold) {
+ celltext = celltext.toLowerCase();
+ }
+ if (celltext.includes(text)) {
+ show = true;
+ }
+ }
+ }
+
+ // Check the "hide covered" filter.
+ if (show && hide100) {
+ const [numer, denom] = row.cells[row.cells.length - 1].dataset.ratio.split(" ");
+ show = (numer !== denom);
+ }
+
+ if (!show) {
+ // hide
+ row.classList.add("hidden");
+ return;
+ }
+
+ // show
+ row.classList.remove("hidden");
+ totals[0]++;
+
+ for (let column = 0; column < totals.length; column++) {
+ // Accumulate dynamic totals
+ cell = row.cells[column] // nosemgrep: eslint.detect-object-injection
+ if (cell.classList.contains("name")) {
+ continue;
+ }
+ if (column === totals.length - 1) {
+ // Last column contains percentage
+ const [numer, denom] = cell.dataset.ratio.split(" ");
+ totals[column]["numer"] += parseInt(numer, 10); // nosemgrep: eslint.detect-object-injection
+ totals[column]["denom"] += parseInt(denom, 10); // nosemgrep: eslint.detect-object-injection
+ }
+ else {
+ totals[column] += parseInt(cell.textContent, 10); // nosemgrep: eslint.detect-object-injection
+ }
+ }
+ });
+
+ // Show placeholder if no rows will be displayed.
+ if (!totals[0]) {
+ // Show placeholder, hide table.
+ no_rows.style.display = "block";
+ table.style.display = "none";
+ return;
+ }
+
+ // Hide placeholder, show table.
+ no_rows.style.display = null;
+ table.style.display = null;
+
+ const footer = table.tFoot.rows[0];
+ // Calculate new dynamic sum values based on visible rows.
+ for (let column = 0; column < totals.length; column++) {
+ // Get footer cell element.
+ const cell = footer.cells[column]; // nosemgrep: eslint.detect-object-injection
+ if (cell.classList.contains("name")) {
+ continue;
+ }
+
+ // Set value into dynamic footer cell element.
+ if (column === totals.length - 1) {
+ // Percentage column uses the numerator and denominator,
+ // and adapts to the number of decimal places.
+ const match = /\.([0-9]+)/.exec(cell.textContent);
+ const places = match ? match[1].length : 0;
+ const { numer, denom } = totals[column]; // nosemgrep: eslint.detect-object-injection
+ cell.dataset.ratio = `${numer} ${denom}`;
+ // Check denom to prevent NaN if filtered files contain no statements
+ cell.textContent = denom
+ ? `${(numer * 100 / denom).toFixed(places)}%`
+ : `${(100).toFixed(places)}%`;
+ }
+ else {
+ cell.textContent = totals[column]; // nosemgrep: eslint.detect-object-injection
+ }
+ }
+ });
+
+ document.getElementById("filter").addEventListener("input", debounce(filter_handler));
+ document.getElementById("hide100").addEventListener("input", debounce(filter_handler));
+
+ // Trigger change event on setup, to force filter on page refresh
+ // (filter value may still be present).
+ document.getElementById("filter").dispatchEvent(new Event("input"));
+ document.getElementById("hide100").dispatchEvent(new Event("input"));
+};
+coverage.FILTER_STORAGE = "COVERAGE_FILTER_VALUE";
+coverage.HIDE100_STORAGE = "COVERAGE_HIDE100_VALUE";
+
+// Set up the click-to-sort columns.
+coverage.wire_up_sorting = function () {
+ document.querySelectorAll("[data-sortable] th[aria-sort]").forEach(
+ th => th.addEventListener("click", e => sortColumn(e.target))
+ );
+
+ // Look for a localStorage item containing previous sort settings:
+ let th_id = "file", direction = "ascending";
+ const stored_list = localStorage.getItem(coverage.INDEX_SORT_STORAGE);
+ if (stored_list) {
+ ({th_id, direction} = JSON.parse(stored_list));
+ }
+ let by_region = false, region_direction = "ascending";
+ const sorted_by_region = localStorage.getItem(coverage.SORTED_BY_REGION);
+ if (sorted_by_region) {
+ ({
+ by_region,
+ region_direction
+ } = JSON.parse(sorted_by_region));
+ }
+
+ const region_id = "region";
+ if (by_region && document.getElementById(region_id)) {
+ direction = region_direction;
+ }
+ // If we are in a page that has a column with id of "region", sort on
+ // it if the last sort was by function or class.
+ let th;
+ if (document.getElementById(region_id)) {
+ th = document.getElementById(by_region ? region_id : th_id);
+ }
+ else {
+ th = document.getElementById(th_id);
+ }
+ th.setAttribute("aria-sort", direction === "ascending" ? "descending" : "ascending");
+ th.click()
+};
+
+coverage.INDEX_SORT_STORAGE = "COVERAGE_INDEX_SORT_2";
+coverage.SORTED_BY_REGION = "COVERAGE_SORT_REGION";
+
+// Loaded on index.html
+coverage.index_ready = function () {
+ coverage.assign_shortkeys();
+ coverage.wire_up_filter();
+ coverage.wire_up_sorting();
+
+ on_click(".button_prev_file", coverage.to_prev_file);
+ on_click(".button_next_file", coverage.to_next_file);
+
+ on_click(".button_show_hide_help", coverage.show_hide_help);
+};
+
+// -- pyfile stuff --
+
+coverage.LINE_FILTERS_STORAGE = "COVERAGE_LINE_FILTERS";
+
+coverage.pyfile_ready = function () {
+ // If we're directed to a particular line number, highlight the line.
+ var frag = location.hash;
+ if (frag.length > 2 && frag[1] === "t") {
+ document.querySelector(frag).closest(".n").classList.add("highlight");
+ coverage.set_sel(parseInt(frag.substr(2), 10));
+ }
+ else {
+ coverage.set_sel(0);
+ }
+
+ on_click(".button_toggle_run", coverage.toggle_lines);
+ on_click(".button_toggle_mis", coverage.toggle_lines);
+ on_click(".button_toggle_exc", coverage.toggle_lines);
+ on_click(".button_toggle_par", coverage.toggle_lines);
+
+ on_click(".button_next_chunk", coverage.to_next_chunk_nicely);
+ on_click(".button_prev_chunk", coverage.to_prev_chunk_nicely);
+ on_click(".button_top_of_page", coverage.to_top);
+ on_click(".button_first_chunk", coverage.to_first_chunk);
+
+ on_click(".button_prev_file", coverage.to_prev_file);
+ on_click(".button_next_file", coverage.to_next_file);
+ on_click(".button_to_index", coverage.to_index);
+
+ on_click(".button_show_hide_help", coverage.show_hide_help);
+
+ coverage.filters = undefined;
+ try {
+ coverage.filters = localStorage.getItem(coverage.LINE_FILTERS_STORAGE);
+ } catch(err) {}
+
+ if (coverage.filters) {
+ coverage.filters = JSON.parse(coverage.filters);
+ }
+ else {
+ coverage.filters = {run: false, exc: true, mis: true, par: true};
+ }
+
+ for (cls in coverage.filters) {
+ coverage.set_line_visibilty(cls, coverage.filters[cls]); // nosemgrep: eslint.detect-object-injection
+ }
+
+ coverage.assign_shortkeys();
+ coverage.init_scroll_markers();
+ coverage.wire_up_sticky_header();
+
+ document.querySelectorAll("[id^=ctxs]").forEach(
+ cbox => cbox.addEventListener("click", coverage.expand_contexts)
+ );
+
+ // Rebuild scroll markers when the window height changes.
+ window.addEventListener("resize", coverage.build_scroll_markers);
+};
+
+coverage.toggle_lines = function (event) {
+ const btn = event.target.closest("button");
+ const category = btn.value
+ const show = !btn.classList.contains("show_" + category);
+ coverage.set_line_visibilty(category, show);
+ coverage.build_scroll_markers();
+ coverage.filters[category] = show;
+ try {
+ localStorage.setItem(coverage.LINE_FILTERS_STORAGE, JSON.stringify(coverage.filters));
+ } catch(err) {}
+};
+
+coverage.set_line_visibilty = function (category, should_show) {
+ const cls = "show_" + category;
+ const btn = document.querySelector(".button_toggle_" + category);
+ if (btn) {
+ if (should_show) {
+ document.querySelectorAll("#source ." + category).forEach(e => e.classList.add(cls));
+ btn.classList.add(cls);
+ }
+ else {
+ document.querySelectorAll("#source ." + category).forEach(e => e.classList.remove(cls));
+ btn.classList.remove(cls);
+ }
+ }
+};
+
+// Return the nth line div.
+coverage.line_elt = function (n) {
+ return document.getElementById("t" + n)?.closest("p");
+};
+
+// Set the selection. b and e are line numbers.
+coverage.set_sel = function (b, e) {
+ // The first line selected.
+ coverage.sel_begin = b;
+ // The next line not selected.
+ coverage.sel_end = (e === undefined) ? b+1 : e;
+};
+
+coverage.to_top = function () {
+ coverage.set_sel(0, 1);
+ coverage.scroll_window(0);
+};
+
+coverage.to_first_chunk = function () {
+ coverage.set_sel(0, 1);
+ coverage.to_next_chunk();
+};
+
+coverage.to_prev_file = function () {
+ window.location = document.getElementById("prevFileLink").href;
+}
+
+coverage.to_next_file = function () {
+ window.location = document.getElementById("nextFileLink").href;
+}
+
+coverage.to_index = function () {
+ location.href = document.getElementById("indexLink").href;
+}
+
+coverage.show_hide_help = function () {
+ const helpCheck = document.getElementById("help_panel_state")
+ helpCheck.checked = !helpCheck.checked;
+}
+
+// Return a string indicating what kind of chunk this line belongs to,
+// or null if not a chunk.
+coverage.chunk_indicator = function (line_elt) {
+ const classes = line_elt?.className;
+ if (!classes) {
+ return null;
+ }
+ const match = classes.match(/\bshow_\w+\b/);
+ if (!match) {
+ return null;
+ }
+ return match[0];
+};
+
+coverage.to_next_chunk = function () {
+ const c = coverage;
+
+ // Find the start of the next colored chunk.
+ var probe = c.sel_end;
+ var chunk_indicator, probe_line;
+ while (true) {
+ probe_line = c.line_elt(probe);
+ if (!probe_line) {
+ return;
+ }
+ chunk_indicator = c.chunk_indicator(probe_line);
+ if (chunk_indicator) {
+ break;
+ }
+ probe++;
+ }
+
+ // There's a next chunk, `probe` points to it.
+ var begin = probe;
+
+ // Find the end of this chunk.
+ var next_indicator = chunk_indicator;
+ while (next_indicator === chunk_indicator) {
+ probe++;
+ probe_line = c.line_elt(probe);
+ next_indicator = c.chunk_indicator(probe_line);
+ }
+ c.set_sel(begin, probe);
+ c.show_selection();
+};
+
+coverage.to_prev_chunk = function () {
+ const c = coverage;
+
+ // Find the end of the prev colored chunk.
+ var probe = c.sel_begin-1;
+ var probe_line = c.line_elt(probe);
+ if (!probe_line) {
+ return;
+ }
+ var chunk_indicator = c.chunk_indicator(probe_line);
+ while (probe > 1 && !chunk_indicator) {
+ probe--;
+ probe_line = c.line_elt(probe);
+ if (!probe_line) {
+ return;
+ }
+ chunk_indicator = c.chunk_indicator(probe_line);
+ }
+
+ // There's a prev chunk, `probe` points to its last line.
+ var end = probe+1;
+
+ // Find the beginning of this chunk.
+ var prev_indicator = chunk_indicator;
+ while (prev_indicator === chunk_indicator) {
+ probe--;
+ if (probe <= 0) {
+ return;
+ }
+ probe_line = c.line_elt(probe);
+ prev_indicator = c.chunk_indicator(probe_line);
+ }
+ c.set_sel(probe+1, end);
+ c.show_selection();
+};
+
+// Returns 0, 1, or 2: how many of the two ends of the selection are on
+// the screen right now?
+coverage.selection_ends_on_screen = function () {
+ if (coverage.sel_begin === 0) {
+ return 0;
+ }
+
+ const begin = coverage.line_elt(coverage.sel_begin);
+ const end = coverage.line_elt(coverage.sel_end-1);
+
+ return (
+ (checkVisible(begin) ? 1 : 0)
+ + (checkVisible(end) ? 1 : 0)
+ );
+};
+
+coverage.to_next_chunk_nicely = function () {
+ if (coverage.selection_ends_on_screen() === 0) {
+ // The selection is entirely off the screen:
+ // Set the top line on the screen as selection.
+
+ // This will select the top-left of the viewport
+ // As this is most likely the span with the line number we take the parent
+ const line = document.elementFromPoint(0, 0).parentElement;
+ if (line.parentElement !== document.getElementById("source")) {
+ // The element is not a source line but the header or similar
+ coverage.select_line_or_chunk(1);
+ }
+ else {
+ // We extract the line number from the id
+ coverage.select_line_or_chunk(parseInt(line.id.substring(1), 10));
+ }
+ }
+ coverage.to_next_chunk();
+};
+
+coverage.to_prev_chunk_nicely = function () {
+ if (coverage.selection_ends_on_screen() === 0) {
+ // The selection is entirely off the screen:
+ // Set the lowest line on the screen as selection.
+
+ // This will select the bottom-left of the viewport
+ // As this is most likely the span with the line number we take the parent
+ const line = document.elementFromPoint(document.documentElement.clientHeight-1, 0).parentElement;
+ if (line.parentElement !== document.getElementById("source")) {
+ // The element is not a source line but the header or similar
+ coverage.select_line_or_chunk(coverage.lines_len);
+ }
+ else {
+ // We extract the line number from the id
+ coverage.select_line_or_chunk(parseInt(line.id.substring(1), 10));
+ }
+ }
+ coverage.to_prev_chunk();
+};
+
+// Select line number lineno, or if it is in a colored chunk, select the
+// entire chunk
+coverage.select_line_or_chunk = function (lineno) {
+ var c = coverage;
+ var probe_line = c.line_elt(lineno);
+ if (!probe_line) {
+ return;
+ }
+ var the_indicator = c.chunk_indicator(probe_line);
+ if (the_indicator) {
+ // The line is in a highlighted chunk.
+ // Search backward for the first line.
+ var probe = lineno;
+ var indicator = the_indicator;
+ while (probe > 0 && indicator === the_indicator) {
+ probe--;
+ probe_line = c.line_elt(probe);
+ if (!probe_line) {
+ break;
+ }
+ indicator = c.chunk_indicator(probe_line);
+ }
+ var begin = probe + 1;
+
+ // Search forward for the last line.
+ probe = lineno;
+ indicator = the_indicator;
+ while (indicator === the_indicator) {
+ probe++;
+ probe_line = c.line_elt(probe);
+ indicator = c.chunk_indicator(probe_line);
+ }
+
+ coverage.set_sel(begin, probe);
+ }
+ else {
+ coverage.set_sel(lineno);
+ }
+};
+
+coverage.show_selection = function () {
+ // Highlight the lines in the chunk
+ document.querySelectorAll("#source .highlight").forEach(e => e.classList.remove("highlight"));
+ for (let probe = coverage.sel_begin; probe < coverage.sel_end; probe++) {
+ coverage.line_elt(probe).querySelector(".n").classList.add("highlight");
+ }
+
+ coverage.scroll_to_selection();
+};
+
+coverage.scroll_to_selection = function () {
+ // Scroll the page if the chunk isn't fully visible.
+ if (coverage.selection_ends_on_screen() < 2) {
+ const element = coverage.line_elt(coverage.sel_begin);
+ coverage.scroll_window(element.offsetTop - 60);
+ }
+};
+
+coverage.scroll_window = function (to_pos) {
+ window.scroll({top: to_pos, behavior: "smooth"});
+};
+
+coverage.init_scroll_markers = function () {
+ // Init some variables
+ coverage.lines_len = document.querySelectorAll("#source > p").length;
+
+ // Build html
+ coverage.build_scroll_markers();
+};
+
+coverage.build_scroll_markers = function () {
+ const temp_scroll_marker = document.getElementById("scroll_marker")
+ if (temp_scroll_marker) temp_scroll_marker.remove();
+ // Don't build markers if the window has no scroll bar.
+ if (document.body.scrollHeight <= window.innerHeight) {
+ return;
+ }
+
+ const marker_scale = window.innerHeight / document.body.scrollHeight;
+ const line_height = Math.min(Math.max(3, window.innerHeight / coverage.lines_len), 10);
+
+ let previous_line = -99, last_mark, last_top;
+
+ const scroll_marker = document.createElement("div");
+ scroll_marker.id = "scroll_marker";
+ document.getElementById("source").querySelectorAll(
+ "p.show_run, p.show_mis, p.show_exc, p.show_exc, p.show_par"
+ ).forEach(element => {
+ const line_top = Math.floor(element.offsetTop * marker_scale);
+ const line_number = parseInt(element.querySelector(".n a").id.substr(1));
+
+ if (line_number === previous_line + 1) {
+ // If this solid missed block just make previous mark higher.
+ last_mark.style.height = `${line_top + line_height - last_top}px`;
+ }
+ else {
+ // Add colored line in scroll_marker block.
+ last_mark = document.createElement("div");
+ last_mark.id = `m${line_number}`;
+ last_mark.classList.add("marker");
+ last_mark.style.height = `${line_height}px`;
+ last_mark.style.top = `${line_top}px`;
+ scroll_marker.append(last_mark);
+ last_top = line_top;
+ }
+
+ previous_line = line_number;
+ });
+
+ // Append last to prevent layout calculation
+ document.body.append(scroll_marker);
+};
+
+coverage.wire_up_sticky_header = function () {
+ const header = document.querySelector("header");
+ const header_bottom = (
+ header.querySelector(".content h2").getBoundingClientRect().top -
+ header.getBoundingClientRect().top
+ );
+
+ function updateHeader() {
+ if (window.scrollY > header_bottom) {
+ header.classList.add("sticky");
+ }
+ else {
+ header.classList.remove("sticky");
+ }
+ }
+
+ window.addEventListener("scroll", updateHeader);
+ updateHeader();
+};
+
+coverage.expand_contexts = function (e) {
+ var ctxs = e.target.parentNode.querySelector(".ctxs");
+
+ if (!ctxs.classList.contains("expanded")) {
+ var ctxs_text = ctxs.textContent;
+ var width = Number(ctxs_text[0]);
+ ctxs.textContent = "";
+ for (var i = 1; i < ctxs_text.length; i += width) {
+ key = ctxs_text.substring(i, i + width).trim();
+ ctxs.appendChild(document.createTextNode(contexts[key]));
+ ctxs.appendChild(document.createElement("br"));
+ }
+ ctxs.classList.add("expanded");
+ }
+};
+
+document.addEventListener("DOMContentLoaded", () => {
+ if (document.body.classList.contains("indexfile")) {
+ coverage.index_ready();
+ }
+ else {
+ coverage.pyfile_ready();
+ }
+});
diff --git a/pycov/coverage_html_cb_6fb7b396.js b/pycov/coverage_html_cb_6fb7b396.js
new file mode 100644
index 00000000..1face13d
--- /dev/null
+++ b/pycov/coverage_html_cb_6fb7b396.js
@@ -0,0 +1,733 @@
+// Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+// For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
+
+// Coverage.py HTML report browser code.
+/*jslint browser: true, sloppy: true, vars: true, plusplus: true, maxerr: 50, indent: 4 */
+/*global coverage: true, document, window, $ */
+
+coverage = {};
+
+// General helpers
+function debounce(callback, wait) {
+ let timeoutId = null;
+ return function(...args) {
+ clearTimeout(timeoutId);
+ timeoutId = setTimeout(() => {
+ callback.apply(this, args);
+ }, wait);
+ };
+};
+
+function checkVisible(element) {
+ const rect = element.getBoundingClientRect();
+ const viewBottom = Math.max(document.documentElement.clientHeight, window.innerHeight);
+ const viewTop = 30;
+ return !(rect.bottom < viewTop || rect.top >= viewBottom);
+}
+
+function on_click(sel, fn) {
+ const elt = document.querySelector(sel);
+ if (elt) {
+ elt.addEventListener("click", fn);
+ }
+}
+
+// Helpers for table sorting
+function getCellValue(row, column = 0) {
+ const cell = row.cells[column] // nosemgrep: eslint.detect-object-injection
+ if (cell.childElementCount == 1) {
+ var child = cell.firstElementChild;
+ if (child.tagName === "A") {
+ child = child.firstElementChild;
+ }
+ if (child instanceof HTMLDataElement && child.value) {
+ return child.value;
+ }
+ }
+ return cell.innerText || cell.textContent;
+}
+
+function rowComparator(rowA, rowB, column = 0) {
+ let valueA = getCellValue(rowA, column);
+ let valueB = getCellValue(rowB, column);
+ if (!isNaN(valueA) && !isNaN(valueB)) {
+ return valueA - valueB;
+ }
+ return valueA.localeCompare(valueB, undefined, {numeric: true});
+}
+
+function sortColumn(th) {
+ // Get the current sorting direction of the selected header,
+ // clear state on other headers and then set the new sorting direction.
+ const currentSortOrder = th.getAttribute("aria-sort");
+ [...th.parentElement.cells].forEach(header => header.setAttribute("aria-sort", "none"));
+ var direction;
+ if (currentSortOrder === "none") {
+ direction = th.dataset.defaultSortOrder || "ascending";
+ }
+ else if (currentSortOrder === "ascending") {
+ direction = "descending";
+ }
+ else {
+ direction = "ascending";
+ }
+ th.setAttribute("aria-sort", direction);
+
+ const column = [...th.parentElement.cells].indexOf(th)
+
+ // Sort all rows and afterwards append them in order to move them in the DOM.
+ Array.from(th.closest("table").querySelectorAll("tbody tr"))
+ .sort((rowA, rowB) => rowComparator(rowA, rowB, column) * (direction === "ascending" ? 1 : -1))
+ .forEach(tr => tr.parentElement.appendChild(tr));
+
+ // Save the sort order for next time.
+ if (th.id !== "region") {
+ let th_id = "file"; // Sort by file if we don't have a column id
+ let current_direction = direction;
+ const stored_list = localStorage.getItem(coverage.INDEX_SORT_STORAGE);
+ if (stored_list) {
+ ({th_id, direction} = JSON.parse(stored_list))
+ }
+ localStorage.setItem(coverage.INDEX_SORT_STORAGE, JSON.stringify({
+ "th_id": th.id,
+ "direction": current_direction
+ }));
+ if (th.id !== th_id || document.getElementById("region")) {
+ // Sort column has changed, unset sorting by function or class.
+ localStorage.setItem(coverage.SORTED_BY_REGION, JSON.stringify({
+ "by_region": false,
+ "region_direction": current_direction
+ }));
+ }
+ }
+ else {
+ // Sort column has changed to by function or class, remember that.
+ localStorage.setItem(coverage.SORTED_BY_REGION, JSON.stringify({
+ "by_region": true,
+ "region_direction": direction
+ }));
+ }
+}
+
+// Find all the elements with data-shortcut attribute, and use them to assign a shortcut key.
+coverage.assign_shortkeys = function () {
+ document.querySelectorAll("[data-shortcut]").forEach(element => {
+ document.addEventListener("keypress", event => {
+ if (event.target.tagName.toLowerCase() === "input") {
+ return; // ignore keypress from search filter
+ }
+ if (event.key === element.dataset.shortcut) {
+ element.click();
+ }
+ });
+ });
+};
+
+// Create the events for the filter box.
+coverage.wire_up_filter = function () {
+ // Populate the filter and hide100 inputs if there are saved values for them.
+ const saved_filter_value = localStorage.getItem(coverage.FILTER_STORAGE);
+ if (saved_filter_value) {
+ document.getElementById("filter").value = saved_filter_value;
+ }
+ const saved_hide100_value = localStorage.getItem(coverage.HIDE100_STORAGE);
+ if (saved_hide100_value) {
+ document.getElementById("hide100").checked = JSON.parse(saved_hide100_value);
+ }
+
+ // Cache elements.
+ const table = document.querySelector("table.index");
+ const table_body_rows = table.querySelectorAll("tbody tr");
+ const no_rows = document.getElementById("no_rows");
+
+ // Observe filter keyevents.
+ const filter_handler = (event => {
+ // Keep running total of each metric, first index contains number of shown rows
+ const totals = new Array(table.rows[0].cells.length).fill(0);
+ // Accumulate the percentage as fraction
+ totals[totals.length - 1] = { "numer": 0, "denom": 0 }; // nosemgrep: eslint.detect-object-injection
+
+ var text = document.getElementById("filter").value;
+ // Store filter value
+ localStorage.setItem(coverage.FILTER_STORAGE, text);
+ const casefold = (text === text.toLowerCase());
+ const hide100 = document.getElementById("hide100").checked;
+ // Store hide value.
+ localStorage.setItem(coverage.HIDE100_STORAGE, JSON.stringify(hide100));
+
+ // Hide / show elements.
+ table_body_rows.forEach(row => {
+ var show = false;
+ // Check the text filter.
+ for (let column = 0; column < totals.length; column++) {
+ cell = row.cells[column];
+ if (cell.classList.contains("name")) {
+ var celltext = cell.textContent;
+ if (casefold) {
+ celltext = celltext.toLowerCase();
+ }
+ if (celltext.includes(text)) {
+ show = true;
+ }
+ }
+ }
+
+ // Check the "hide covered" filter.
+ if (show && hide100) {
+ const [numer, denom] = row.cells[row.cells.length - 1].dataset.ratio.split(" ");
+ show = (numer !== denom);
+ }
+
+ if (!show) {
+ // hide
+ row.classList.add("hidden");
+ return;
+ }
+
+ // show
+ row.classList.remove("hidden");
+ totals[0]++;
+
+ for (let column = 0; column < totals.length; column++) {
+ // Accumulate dynamic totals
+ cell = row.cells[column] // nosemgrep: eslint.detect-object-injection
+ if (cell.classList.contains("name")) {
+ continue;
+ }
+ if (column === totals.length - 1) {
+ // Last column contains percentage
+ const [numer, denom] = cell.dataset.ratio.split(" ");
+ totals[column]["numer"] += parseInt(numer, 10); // nosemgrep: eslint.detect-object-injection
+ totals[column]["denom"] += parseInt(denom, 10); // nosemgrep: eslint.detect-object-injection
+ }
+ else {
+ totals[column] += parseInt(cell.textContent, 10); // nosemgrep: eslint.detect-object-injection
+ }
+ }
+ });
+
+ // Show placeholder if no rows will be displayed.
+ if (!totals[0]) {
+ // Show placeholder, hide table.
+ no_rows.style.display = "block";
+ table.style.display = "none";
+ return;
+ }
+
+ // Hide placeholder, show table.
+ no_rows.style.display = null;
+ table.style.display = null;
+
+ const footer = table.tFoot.rows[0];
+ // Calculate new dynamic sum values based on visible rows.
+ for (let column = 0; column < totals.length; column++) {
+ // Get footer cell element.
+ const cell = footer.cells[column]; // nosemgrep: eslint.detect-object-injection
+ if (cell.classList.contains("name")) {
+ continue;
+ }
+
+ // Set value into dynamic footer cell element.
+ if (column === totals.length - 1) {
+ // Percentage column uses the numerator and denominator,
+ // and adapts to the number of decimal places.
+ const match = /\.([0-9]+)/.exec(cell.textContent);
+ const places = match ? match[1].length : 0;
+ const { numer, denom } = totals[column]; // nosemgrep: eslint.detect-object-injection
+ cell.dataset.ratio = `${numer} ${denom}`;
+ // Check denom to prevent NaN if filtered files contain no statements
+ cell.textContent = denom
+ ? `${(numer * 100 / denom).toFixed(places)}%`
+ : `${(100).toFixed(places)}%`;
+ }
+ else {
+ cell.textContent = totals[column]; // nosemgrep: eslint.detect-object-injection
+ }
+ }
+ });
+
+ document.getElementById("filter").addEventListener("input", debounce(filter_handler));
+ document.getElementById("hide100").addEventListener("input", debounce(filter_handler));
+
+ // Trigger change event on setup, to force filter on page refresh
+ // (filter value may still be present).
+ document.getElementById("filter").dispatchEvent(new Event("input"));
+ document.getElementById("hide100").dispatchEvent(new Event("input"));
+};
+coverage.FILTER_STORAGE = "COVERAGE_FILTER_VALUE";
+coverage.HIDE100_STORAGE = "COVERAGE_HIDE100_VALUE";
+
+// Set up the click-to-sort columns.
+coverage.wire_up_sorting = function () {
+ document.querySelectorAll("[data-sortable] th[aria-sort]").forEach(
+ th => th.addEventListener("click", e => sortColumn(e.target))
+ );
+
+ // Look for a localStorage item containing previous sort settings:
+ let th_id = "file", direction = "ascending";
+ const stored_list = localStorage.getItem(coverage.INDEX_SORT_STORAGE);
+ if (stored_list) {
+ ({th_id, direction} = JSON.parse(stored_list));
+ }
+ let by_region = false, region_direction = "ascending";
+ const sorted_by_region = localStorage.getItem(coverage.SORTED_BY_REGION);
+ if (sorted_by_region) {
+ ({
+ by_region,
+ region_direction
+ } = JSON.parse(sorted_by_region));
+ }
+
+ const region_id = "region";
+ if (by_region && document.getElementById(region_id)) {
+ direction = region_direction;
+ }
+ // If we are in a page that has a column with id of "region", sort on
+ // it if the last sort was by function or class.
+ let th;
+ if (document.getElementById(region_id)) {
+ th = document.getElementById(by_region ? region_id : th_id);
+ }
+ else {
+ th = document.getElementById(th_id);
+ }
+ th.setAttribute("aria-sort", direction === "ascending" ? "descending" : "ascending");
+ th.click()
+};
+
+coverage.INDEX_SORT_STORAGE = "COVERAGE_INDEX_SORT_2";
+coverage.SORTED_BY_REGION = "COVERAGE_SORT_REGION";
+
+// Loaded on index.html
+coverage.index_ready = function () {
+ coverage.assign_shortkeys();
+ coverage.wire_up_filter();
+ coverage.wire_up_sorting();
+
+ on_click(".button_prev_file", coverage.to_prev_file);
+ on_click(".button_next_file", coverage.to_next_file);
+
+ on_click(".button_show_hide_help", coverage.show_hide_help);
+};
+
+// -- pyfile stuff --
+
+coverage.LINE_FILTERS_STORAGE = "COVERAGE_LINE_FILTERS";
+
+coverage.pyfile_ready = function () {
+ // If we're directed to a particular line number, highlight the line.
+ var frag = location.hash;
+ if (frag.length > 2 && frag[1] === "t") {
+ document.querySelector(frag).closest(".n").classList.add("highlight");
+ coverage.set_sel(parseInt(frag.substr(2), 10));
+ }
+ else {
+ coverage.set_sel(0);
+ }
+
+ on_click(".button_toggle_run", coverage.toggle_lines);
+ on_click(".button_toggle_mis", coverage.toggle_lines);
+ on_click(".button_toggle_exc", coverage.toggle_lines);
+ on_click(".button_toggle_par", coverage.toggle_lines);
+
+ on_click(".button_next_chunk", coverage.to_next_chunk_nicely);
+ on_click(".button_prev_chunk", coverage.to_prev_chunk_nicely);
+ on_click(".button_top_of_page", coverage.to_top);
+ on_click(".button_first_chunk", coverage.to_first_chunk);
+
+ on_click(".button_prev_file", coverage.to_prev_file);
+ on_click(".button_next_file", coverage.to_next_file);
+ on_click(".button_to_index", coverage.to_index);
+
+ on_click(".button_show_hide_help", coverage.show_hide_help);
+
+ coverage.filters = undefined;
+ try {
+ coverage.filters = localStorage.getItem(coverage.LINE_FILTERS_STORAGE);
+ } catch(err) {}
+
+ if (coverage.filters) {
+ coverage.filters = JSON.parse(coverage.filters);
+ }
+ else {
+ coverage.filters = {run: false, exc: true, mis: true, par: true};
+ }
+
+ for (cls in coverage.filters) {
+ coverage.set_line_visibilty(cls, coverage.filters[cls]); // nosemgrep: eslint.detect-object-injection
+ }
+
+ coverage.assign_shortkeys();
+ coverage.init_scroll_markers();
+ coverage.wire_up_sticky_header();
+
+ document.querySelectorAll("[id^=ctxs]").forEach(
+ cbox => cbox.addEventListener("click", coverage.expand_contexts)
+ );
+
+ // Rebuild scroll markers when the window height changes.
+ window.addEventListener("resize", coverage.build_scroll_markers);
+};
+
+coverage.toggle_lines = function (event) {
+ const btn = event.target.closest("button");
+ const category = btn.value
+ const show = !btn.classList.contains("show_" + category);
+ coverage.set_line_visibilty(category, show);
+ coverage.build_scroll_markers();
+ coverage.filters[category] = show;
+ try {
+ localStorage.setItem(coverage.LINE_FILTERS_STORAGE, JSON.stringify(coverage.filters));
+ } catch(err) {}
+};
+
+coverage.set_line_visibilty = function (category, should_show) {
+ const cls = "show_" + category;
+ const btn = document.querySelector(".button_toggle_" + category);
+ if (btn) {
+ if (should_show) {
+ document.querySelectorAll("#source ." + category).forEach(e => e.classList.add(cls));
+ btn.classList.add(cls);
+ }
+ else {
+ document.querySelectorAll("#source ." + category).forEach(e => e.classList.remove(cls));
+ btn.classList.remove(cls);
+ }
+ }
+};
+
+// Return the nth line div.
+coverage.line_elt = function (n) {
+ return document.getElementById("t" + n)?.closest("p");
+};
+
+// Set the selection. b and e are line numbers.
+coverage.set_sel = function (b, e) {
+ // The first line selected.
+ coverage.sel_begin = b;
+ // The next line not selected.
+ coverage.sel_end = (e === undefined) ? b+1 : e;
+};
+
+coverage.to_top = function () {
+ coverage.set_sel(0, 1);
+ coverage.scroll_window(0);
+};
+
+coverage.to_first_chunk = function () {
+ coverage.set_sel(0, 1);
+ coverage.to_next_chunk();
+};
+
+coverage.to_prev_file = function () {
+ window.location = document.getElementById("prevFileLink").href;
+}
+
+coverage.to_next_file = function () {
+ window.location = document.getElementById("nextFileLink").href;
+}
+
+coverage.to_index = function () {
+ location.href = document.getElementById("indexLink").href;
+}
+
+coverage.show_hide_help = function () {
+ const helpCheck = document.getElementById("help_panel_state")
+ helpCheck.checked = !helpCheck.checked;
+}
+
+// Return a string indicating what kind of chunk this line belongs to,
+// or null if not a chunk.
+coverage.chunk_indicator = function (line_elt) {
+ const classes = line_elt?.className;
+ if (!classes) {
+ return null;
+ }
+ const match = classes.match(/\bshow_\w+\b/);
+ if (!match) {
+ return null;
+ }
+ return match[0];
+};
+
+coverage.to_next_chunk = function () {
+ const c = coverage;
+
+ // Find the start of the next colored chunk.
+ var probe = c.sel_end;
+ var chunk_indicator, probe_line;
+ while (true) {
+ probe_line = c.line_elt(probe);
+ if (!probe_line) {
+ return;
+ }
+ chunk_indicator = c.chunk_indicator(probe_line);
+ if (chunk_indicator) {
+ break;
+ }
+ probe++;
+ }
+
+ // There's a next chunk, `probe` points to it.
+ var begin = probe;
+
+ // Find the end of this chunk.
+ var next_indicator = chunk_indicator;
+ while (next_indicator === chunk_indicator) {
+ probe++;
+ probe_line = c.line_elt(probe);
+ next_indicator = c.chunk_indicator(probe_line);
+ }
+ c.set_sel(begin, probe);
+ c.show_selection();
+};
+
+coverage.to_prev_chunk = function () {
+ const c = coverage;
+
+ // Find the end of the prev colored chunk.
+ var probe = c.sel_begin-1;
+ var probe_line = c.line_elt(probe);
+ if (!probe_line) {
+ return;
+ }
+ var chunk_indicator = c.chunk_indicator(probe_line);
+ while (probe > 1 && !chunk_indicator) {
+ probe--;
+ probe_line = c.line_elt(probe);
+ if (!probe_line) {
+ return;
+ }
+ chunk_indicator = c.chunk_indicator(probe_line);
+ }
+
+ // There's a prev chunk, `probe` points to its last line.
+ var end = probe+1;
+
+ // Find the beginning of this chunk.
+ var prev_indicator = chunk_indicator;
+ while (prev_indicator === chunk_indicator) {
+ probe--;
+ if (probe <= 0) {
+ return;
+ }
+ probe_line = c.line_elt(probe);
+ prev_indicator = c.chunk_indicator(probe_line);
+ }
+ c.set_sel(probe+1, end);
+ c.show_selection();
+};
+
+// Returns 0, 1, or 2: how many of the two ends of the selection are on
+// the screen right now?
+coverage.selection_ends_on_screen = function () {
+ if (coverage.sel_begin === 0) {
+ return 0;
+ }
+
+ const begin = coverage.line_elt(coverage.sel_begin);
+ const end = coverage.line_elt(coverage.sel_end-1);
+
+ return (
+ (checkVisible(begin) ? 1 : 0)
+ + (checkVisible(end) ? 1 : 0)
+ );
+};
+
+coverage.to_next_chunk_nicely = function () {
+ if (coverage.selection_ends_on_screen() === 0) {
+ // The selection is entirely off the screen:
+ // Set the top line on the screen as selection.
+
+ // This will select the top-left of the viewport
+ // As this is most likely the span with the line number we take the parent
+ const line = document.elementFromPoint(0, 0).parentElement;
+ if (line.parentElement !== document.getElementById("source")) {
+ // The element is not a source line but the header or similar
+ coverage.select_line_or_chunk(1);
+ }
+ else {
+ // We extract the line number from the id
+ coverage.select_line_or_chunk(parseInt(line.id.substring(1), 10));
+ }
+ }
+ coverage.to_next_chunk();
+};
+
+coverage.to_prev_chunk_nicely = function () {
+ if (coverage.selection_ends_on_screen() === 0) {
+ // The selection is entirely off the screen:
+ // Set the lowest line on the screen as selection.
+
+ // This will select the bottom-left of the viewport
+ // As this is most likely the span with the line number we take the parent
+ const line = document.elementFromPoint(document.documentElement.clientHeight-1, 0).parentElement;
+ if (line.parentElement !== document.getElementById("source")) {
+ // The element is not a source line but the header or similar
+ coverage.select_line_or_chunk(coverage.lines_len);
+ }
+ else {
+ // We extract the line number from the id
+ coverage.select_line_or_chunk(parseInt(line.id.substring(1), 10));
+ }
+ }
+ coverage.to_prev_chunk();
+};
+
+// Select line number lineno, or if it is in a colored chunk, select the
+// entire chunk
+coverage.select_line_or_chunk = function (lineno) {
+ var c = coverage;
+ var probe_line = c.line_elt(lineno);
+ if (!probe_line) {
+ return;
+ }
+ var the_indicator = c.chunk_indicator(probe_line);
+ if (the_indicator) {
+ // The line is in a highlighted chunk.
+ // Search backward for the first line.
+ var probe = lineno;
+ var indicator = the_indicator;
+ while (probe > 0 && indicator === the_indicator) {
+ probe--;
+ probe_line = c.line_elt(probe);
+ if (!probe_line) {
+ break;
+ }
+ indicator = c.chunk_indicator(probe_line);
+ }
+ var begin = probe + 1;
+
+ // Search forward for the last line.
+ probe = lineno;
+ indicator = the_indicator;
+ while (indicator === the_indicator) {
+ probe++;
+ probe_line = c.line_elt(probe);
+ indicator = c.chunk_indicator(probe_line);
+ }
+
+ coverage.set_sel(begin, probe);
+ }
+ else {
+ coverage.set_sel(lineno);
+ }
+};
+
+coverage.show_selection = function () {
+ // Highlight the lines in the chunk
+ document.querySelectorAll("#source .highlight").forEach(e => e.classList.remove("highlight"));
+ for (let probe = coverage.sel_begin; probe < coverage.sel_end; probe++) {
+ coverage.line_elt(probe).querySelector(".n").classList.add("highlight");
+ }
+
+ coverage.scroll_to_selection();
+};
+
+coverage.scroll_to_selection = function () {
+ // Scroll the page if the chunk isn't fully visible.
+ if (coverage.selection_ends_on_screen() < 2) {
+ const element = coverage.line_elt(coverage.sel_begin);
+ coverage.scroll_window(element.offsetTop - 60);
+ }
+};
+
+coverage.scroll_window = function (to_pos) {
+ window.scroll({top: to_pos, behavior: "smooth"});
+};
+
+coverage.init_scroll_markers = function () {
+ // Init some variables
+ coverage.lines_len = document.querySelectorAll("#source > p").length;
+
+ // Build html
+ coverage.build_scroll_markers();
+};
+
+coverage.build_scroll_markers = function () {
+ const temp_scroll_marker = document.getElementById("scroll_marker")
+ if (temp_scroll_marker) temp_scroll_marker.remove();
+ // Don't build markers if the window has no scroll bar.
+ if (document.body.scrollHeight <= window.innerHeight) {
+ return;
+ }
+
+ const marker_scale = window.innerHeight / document.body.scrollHeight;
+ const line_height = Math.min(Math.max(3, window.innerHeight / coverage.lines_len), 10);
+
+ let previous_line = -99, last_mark, last_top;
+
+ const scroll_marker = document.createElement("div");
+ scroll_marker.id = "scroll_marker";
+ document.getElementById("source").querySelectorAll(
+ "p.show_run, p.show_mis, p.show_exc, p.show_exc, p.show_par"
+ ).forEach(element => {
+ const line_top = Math.floor(element.offsetTop * marker_scale);
+ const line_number = parseInt(element.querySelector(".n a").id.substr(1));
+
+ if (line_number === previous_line + 1) {
+ // If this solid missed block just make previous mark higher.
+ last_mark.style.height = `${line_top + line_height - last_top}px`;
+ }
+ else {
+ // Add colored line in scroll_marker block.
+ last_mark = document.createElement("div");
+ last_mark.id = `m${line_number}`;
+ last_mark.classList.add("marker");
+ last_mark.style.height = `${line_height}px`;
+ last_mark.style.top = `${line_top}px`;
+ scroll_marker.append(last_mark);
+ last_top = line_top;
+ }
+
+ previous_line = line_number;
+ });
+
+ // Append last to prevent layout calculation
+ document.body.append(scroll_marker);
+};
+
+coverage.wire_up_sticky_header = function () {
+ const header = document.querySelector("header");
+ const header_bottom = (
+ header.querySelector(".content h2").getBoundingClientRect().top -
+ header.getBoundingClientRect().top
+ );
+
+ function updateHeader() {
+ if (window.scrollY > header_bottom) {
+ header.classList.add("sticky");
+ }
+ else {
+ header.classList.remove("sticky");
+ }
+ }
+
+ window.addEventListener("scroll", updateHeader);
+ updateHeader();
+};
+
+coverage.expand_contexts = function (e) {
+ var ctxs = e.target.parentNode.querySelector(".ctxs");
+
+ if (!ctxs.classList.contains("expanded")) {
+ var ctxs_text = ctxs.textContent;
+ var width = Number(ctxs_text[0]);
+ ctxs.textContent = "";
+ for (var i = 1; i < ctxs_text.length; i += width) {
+ key = ctxs_text.substring(i, i + width).trim();
+ ctxs.appendChild(document.createTextNode(contexts[key]));
+ ctxs.appendChild(document.createElement("br"));
+ }
+ ctxs.classList.add("expanded");
+ }
+};
+
+document.addEventListener("DOMContentLoaded", () => {
+ if (document.body.classList.contains("indexfile")) {
+ coverage.index_ready();
+ }
+ else {
+ coverage.pyfile_ready();
+ }
+});
diff --git a/pycov/favicon_32_cb_58284776.png b/pycov/favicon_32_cb_58284776.png
new file mode 100644
index 00000000..8649f047
Binary files /dev/null and b/pycov/favicon_32_cb_58284776.png differ
diff --git a/pycov/function_index.html b/pycov/function_index.html
new file mode 100644
index 00000000..8b7d216b
--- /dev/null
+++ b/pycov/function_index.html
@@ -0,0 +1,2083 @@
+
+
+
+
+ Coverage report
+
+
+
+
+
+
+
+
+
+ No items found using the specified filter.
+
+
+
+
+
diff --git a/pycov/index.html b/pycov/index.html
new file mode 100644
index 00000000..d4975f83
--- /dev/null
+++ b/pycov/index.html
@@ -0,0 +1,398 @@
+
+
+
+
+ Coverage report
+
+
+
+
+
+
+
+
+
+ No items found using the specified filter.
+
+
+
+
+
diff --git a/pycov/keybd_closed_cb_ce680311.png b/pycov/keybd_closed_cb_ce680311.png
new file mode 100644
index 00000000..ba119c47
Binary files /dev/null and b/pycov/keybd_closed_cb_ce680311.png differ
diff --git a/pycov/status.json b/pycov/status.json
new file mode 100644
index 00000000..f44b1466
--- /dev/null
+++ b/pycov/status.json
@@ -0,0 +1 @@
+{"note":"This file is an internal implementation detail to speed up HTML report generation. Its format can change at any time. You might be looking for the JSON report: https://coverage.rtfd.io/cmd.html#cmd-json","format":5,"version":"7.6.8","globals":"780839606a50e982f8960a54c8eb49b1","files":{"z_1e5163ca105fd3f6_process_parasitics_pb2_py":{"hash":"4243d6cd990a5f2ed4988d4295552d50","index":{"url":"z_1e5163ca105fd3f6_process_parasitics_pb2_py.html","file":"build/python_kpex_protobuf/process_parasitics_pb2.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":33,"n_excluded":0,"n_missing":21,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_1e5163ca105fd3f6_process_stack_pb2_py":{"hash":"b61f4c540e594d87560c8fecbe94d491","index":{"url":"z_1e5163ca105fd3f6_process_stack_pb2_py.html","file":"build/python_kpex_protobuf/process_stack_pb2.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":37,"n_excluded":0,"n_missing":25,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_1e5163ca105fd3f6_tech_pb2_py":{"hash":"eb1006697bf9f721a60930a0fff765eb","index":{"url":"z_1e5163ca105fd3f6_tech_pb2_py.html","file":"build/python_kpex_protobuf/tech_pb2.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":23,"n_excluded":0,"n_missing":9,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_31e83241eddb0cfa___init___py":{"hash":"ccb7d60951e0a34fcf73e5d60494ded7","index":{"url":"z_31e83241eddb0cfa___init___py.html","file":"kpex/__init__.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":0,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_b5137d8b20ededf9___init___py":{"hash":"ccb7d60951e0a34fcf73e5d60494ded7","index":{"url":"z_b5137d8b20ededf9___init___py.html","file":"kpex/common/__init__.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":0,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_b5137d8b20ededf9_capacitance_matrix_py":{"hash":"dfa018a58cee9edabf9321730845c6c7","index":{"url":"z_b5137d8b20ededf9_capacitance_matrix_py.html","file":"kpex/common/capacitance_matrix.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":51,"n_excluded":0,"n_missing":2,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_e404b588faff9084_fastcap_runner_py":{"hash":"8782d668fcbc254e1079fbf2aaafcd6b","index":{"url":"z_e404b588faff9084_fastcap_runner_py.html","file":"kpex/fastcap/fastcap_runner.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":62,"n_excluded":0,"n_missing":28,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_a5841ccd503d0903___init___py":{"hash":"ccb7d60951e0a34fcf73e5d60494ded7","index":{"url":"z_a5841ccd503d0903___init___py.html","file":"kpex/fastercap/__init__.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":0,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_a5841ccd503d0903_fastercap_input_builder_py":{"hash":"50c01818469f93294dd4e8d2f6e3c237","index":{"url":"z_a5841ccd503d0903_fastercap_input_builder_py.html","file":"kpex/fastercap/fastercap_input_builder.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":171,"n_excluded":0,"n_missing":153,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_a5841ccd503d0903_fastercap_model_generator_py":{"hash":"8fbcb26196143e657caad4c9ba90dab9","index":{"url":"z_a5841ccd503d0903_fastercap_model_generator_py.html","file":"kpex/fastercap/fastercap_model_generator.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":662,"n_excluded":0,"n_missing":34,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_a5841ccd503d0903_fastercap_runner_py":{"hash":"acfa2d7129bb1e6e602ff3873f406805","index":{"url":"z_a5841ccd503d0903_fastercap_runner_py.html","file":"kpex/fastercap/fastercap_runner.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":56,"n_excluded":0,"n_missing":29,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_2a6b66cd9c831353___init___py":{"hash":"4cd39d325bb785870b3e7003a0f0fe59","index":{"url":"z_2a6b66cd9c831353___init___py.html","file":"kpex/klayout/__init__.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":1,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_2a6b66cd9c831353_lvs_runner_py":{"hash":"644effd58659ddb8da86b11ad171a0ce","index":{"url":"z_2a6b66cd9c831353_lvs_runner_py.html","file":"kpex/klayout/lvs_runner.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":26,"n_excluded":0,"n_missing":18,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_2a6b66cd9c831353_lvsdb_extractor_py":{"hash":"d14386a1cfdc19215c9b4e44140c1e00","index":{"url":"z_2a6b66cd9c831353_lvsdb_extractor_py.html","file":"kpex/klayout/lvsdb_extractor.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":132,"n_excluded":0,"n_missing":43,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_2a6b66cd9c831353_netlist_csv_py":{"hash":"b068875b2e30fa8557ab4d0046234f68","index":{"url":"z_2a6b66cd9c831353_netlist_csv_py.html","file":"kpex/klayout/netlist_csv.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":23,"n_excluded":0,"n_missing":17,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_2a6b66cd9c831353_netlist_expander_py":{"hash":"8b69ec9d7d9d01843e506d254f2e285d","index":{"url":"z_2a6b66cd9c831353_netlist_expander_py.html","file":"kpex/klayout/netlist_expander.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":70,"n_excluded":0,"n_missing":2,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_2a6b66cd9c831353_netlist_reducer_py":{"hash":"cc7d5082fbf5a885d1a04e0cdac2e044","index":{"url":"z_2a6b66cd9c831353_netlist_reducer_py.html","file":"kpex/klayout/netlist_reducer.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":22,"n_excluded":0,"n_missing":1,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_2a6b66cd9c831353_repair_rdb_py":{"hash":"7b201d5a72c90062742b48f9eaf19b22","index":{"url":"z_2a6b66cd9c831353_repair_rdb_py.html","file":"kpex/klayout/repair_rdb.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":79,"n_excluded":0,"n_missing":66,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_31e83241eddb0cfa_kpex_cli_py":{"hash":"7a13956c0df099ca2669ee306ebcbd30","index":{"url":"z_31e83241eddb0cfa_kpex_cli_py.html","file":"kpex/kpex_cli.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":412,"n_excluded":0,"n_missing":355,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_5aed77b868240c56___init___py":{"hash":"7641f0ed844595f498486cf1bdc3c591","index":{"url":"z_5aed77b868240c56___init___py.html","file":"kpex/log/__init__.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":1,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_5aed77b868240c56_logger_py":{"hash":"ef7b22aa88cc820e304248292852544d","index":{"url":"z_5aed77b868240c56_logger_py.html","file":"kpex/log/logger.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":79,"n_excluded":10,"n_missing":9,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_4832265eea321c21___init___py":{"hash":"ccb7d60951e0a34fcf73e5d60494ded7","index":{"url":"z_4832265eea321c21___init___py.html","file":"kpex/magic/__init__.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":0,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_4832265eea321c21_magic_runner_py":{"hash":"e1226befa4ff1649b6fc6949807dd43e","index":{"url":"z_4832265eea321c21_magic_runner_py.html","file":"kpex/magic/magic_runner.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":44,"n_excluded":0,"n_missing":29,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_b7daf585f790d5fa___init___py":{"hash":"ccb7d60951e0a34fcf73e5d60494ded7","index":{"url":"z_b7daf585f790d5fa___init___py.html","file":"kpex/rcx25/__init__.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":0,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_b7daf585f790d5fa_extraction_results_py":{"hash":"d0813accdb016eab8eedca33034e2581","index":{"url":"z_b7daf585f790d5fa_extraction_results_py.html","file":"kpex/rcx25/extraction_results.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":91,"n_excluded":0,"n_missing":17,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_b7daf585f790d5fa_extractor_py":{"hash":"98f0f3c22dc5193d428c05241e929215","index":{"url":"z_b7daf585f790d5fa_extractor_py.html","file":"kpex/rcx25/extractor.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":399,"n_excluded":0,"n_missing":379,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_31e83241eddb0cfa_tech_info_py":{"hash":"8d5aaca2fe0f3f5d270ebb6423a8514e","index":{"url":"z_31e83241eddb0cfa_tech_info_py.html","file":"kpex/tech_info.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":157,"n_excluded":0,"n_missing":87,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_143e04ff0a847ff6___init___py":{"hash":"ccb7d60951e0a34fcf73e5d60494ded7","index":{"url":"z_143e04ff0a847ff6___init___py.html","file":"kpex/util/__init__.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":0,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_143e04ff0a847ff6_argparse_helpers_py":{"hash":"772ffdebbd1702133b455de70d7b248a","index":{"url":"z_143e04ff0a847ff6_argparse_helpers_py.html","file":"kpex/util/argparse_helpers.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":20,"n_excluded":0,"n_missing":15,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_143e04ff0a847ff6_multiple_choice_py":{"hash":"7050dcb3cb1323fc51c90a6b1f1d2517","index":{"url":"z_143e04ff0a847ff6_multiple_choice_py.html","file":"kpex/util/multiple_choice.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":28,"n_excluded":0,"n_missing":11,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_31e83241eddb0cfa_version_py":{"hash":"d8abb72f98e3990e754d1c5c25bd7ae2","index":{"url":"z_31e83241eddb0cfa_version_py.html","file":"kpex/version.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":1,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_a44f0ac069e85531___init___py":{"hash":"ccb7d60951e0a34fcf73e5d60494ded7","index":{"url":"z_a44f0ac069e85531___init___py.html","file":"tests/__init__.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":0,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_741a08911aeaedad___init___py":{"hash":"ccb7d60951e0a34fcf73e5d60494ded7","index":{"url":"z_741a08911aeaedad___init___py.html","file":"tests/common/__init__.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":0,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_741a08911aeaedad_capacitance_matrix_test_py":{"hash":"bb2e11c8d290f0c8b88bb96274a3373e","index":{"url":"z_741a08911aeaedad_capacitance_matrix_test_py.html","file":"tests/common/capacitance_matrix_test.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":36,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_2a1ea3ee988f9971_fastcap_runner_test_py":{"hash":"ad3381e8eafd5aa9fcf8ce655e5ec47e","index":{"url":"z_2a1ea3ee988f9971_fastcap_runner_test_py.html","file":"tests/fastcap/fastcap_runner_test.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":22,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_45b499fe6cab3296___init___py":{"hash":"ccb7d60951e0a34fcf73e5d60494ded7","index":{"url":"z_45b499fe6cab3296___init___py.html","file":"tests/fastercap/__init__.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":0,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_45b499fe6cab3296_fastercap_model_generator_test_py":{"hash":"b6904f0132602594942dbd26b644c691","index":{"url":"z_45b499fe6cab3296_fastercap_model_generator_test_py.html","file":"tests/fastercap/fastercap_model_generator_test.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":60,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_45b499fe6cab3296_fastercap_runner_test_py":{"hash":"0040386548a24f5d40496c399dc38d66","index":{"url":"z_45b499fe6cab3296_fastercap_runner_test_py.html","file":"tests/fastercap/fastercap_runner_test.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":21,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_5f30060c77e65d78_lvs_runner_test_py":{"hash":"81d930e2b25dbf02ae8bce8ac5fac609","index":{"url":"z_5f30060c77e65d78_lvs_runner_test_py.html","file":"tests/klayout/lvs_runner_test.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":24,"n_excluded":0,"n_missing":11,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_5f30060c77e65d78_netlist_expander_test_py":{"hash":"b73ac72651a1edd9eb766405be2bbd61","index":{"url":"z_5f30060c77e65d78_netlist_expander_test_py.html","file":"tests/klayout/netlist_expander_test.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":37,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_5f30060c77e65d78_netlist_reducer_test_py":{"hash":"1afe06f84dfcfcd14b33477a72059c0d","index":{"url":"z_5f30060c77e65d78_netlist_reducer_test_py.html","file":"tests/klayout/netlist_reducer_test.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":33,"n_excluded":0,"n_missing":0,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}},"z_2dc81a3a091b1002_rcx25_test_py":{"hash":"bdb9c127f37cbba3d6670c7a743f0507","index":{"url":"z_2dc81a3a091b1002_rcx25_test_py.html","file":"tests/rcx25/rcx25_test.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":110,"n_excluded":0,"n_missing":48,"n_branches":0,"n_partial_branches":0,"n_missing_branches":0}}}}}
\ No newline at end of file
diff --git a/pycov/style_cb_718ce007.css b/pycov/style_cb_718ce007.css
new file mode 100644
index 00000000..03046835
--- /dev/null
+++ b/pycov/style_cb_718ce007.css
@@ -0,0 +1,337 @@
+@charset "UTF-8";
+/* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */
+/* For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt */
+/* Don't edit this .css file. Edit the .scss file instead! */
+html, body, h1, h2, h3, p, table, td, th { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; }
+
+body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 1em; background: #fff; color: #000; }
+
+@media (prefers-color-scheme: dark) { body { background: #1e1e1e; } }
+
+@media (prefers-color-scheme: dark) { body { color: #eee; } }
+
+html > body { font-size: 16px; }
+
+a:active, a:focus { outline: 2px dashed #007acc; }
+
+p { font-size: .875em; line-height: 1.4em; }
+
+table { border-collapse: collapse; }
+
+td { vertical-align: top; }
+
+table tr.hidden { display: none !important; }
+
+p#no_rows { display: none; font-size: 1.15em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
+
+a.nav { text-decoration: none; color: inherit; }
+
+a.nav:hover { text-decoration: underline; color: inherit; }
+
+.hidden { display: none; }
+
+header { background: #f8f8f8; width: 100%; z-index: 2; border-bottom: 1px solid #ccc; }
+
+@media (prefers-color-scheme: dark) { header { background: black; } }
+
+@media (prefers-color-scheme: dark) { header { border-color: #333; } }
+
+header .content { padding: 1rem 3.5rem; }
+
+header h2 { margin-top: .5em; font-size: 1em; }
+
+header h2 a.button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; background: #eee; color: inherit; text-decoration: none; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; }
+
+@media (prefers-color-scheme: dark) { header h2 a.button { background: #333; } }
+
+@media (prefers-color-scheme: dark) { header h2 a.button { border-color: #444; } }
+
+header h2 a.button.current { border: 2px solid; background: #fff; border-color: #999; cursor: default; }
+
+@media (prefers-color-scheme: dark) { header h2 a.button.current { background: #1e1e1e; } }
+
+@media (prefers-color-scheme: dark) { header h2 a.button.current { border-color: #777; } }
+
+header p.text { margin: .5em 0 -.5em; color: #666; font-style: italic; }
+
+@media (prefers-color-scheme: dark) { header p.text { color: #aaa; } }
+
+header.sticky { position: fixed; left: 0; right: 0; height: 2.5em; }
+
+header.sticky .text { display: none; }
+
+header.sticky h1, header.sticky h2 { font-size: 1em; margin-top: 0; display: inline-block; }
+
+header.sticky .content { padding: 0.5rem 3.5rem; }
+
+header.sticky .content p { font-size: 1em; }
+
+header.sticky ~ #source { padding-top: 6.5em; }
+
+main { position: relative; z-index: 1; }
+
+footer { margin: 1rem 3.5rem; }
+
+footer .content { padding: 0; color: #666; font-style: italic; }
+
+@media (prefers-color-scheme: dark) { footer .content { color: #aaa; } }
+
+#index { margin: 1rem 0 0 3.5rem; }
+
+h1 { font-size: 1.25em; display: inline-block; }
+
+#filter_container { float: right; margin: 0 2em 0 0; line-height: 1.66em; }
+
+#filter_container #filter { width: 10em; padding: 0.2em 0.5em; border: 2px solid #ccc; background: #fff; color: #000; }
+
+@media (prefers-color-scheme: dark) { #filter_container #filter { border-color: #444; } }
+
+@media (prefers-color-scheme: dark) { #filter_container #filter { background: #1e1e1e; } }
+
+@media (prefers-color-scheme: dark) { #filter_container #filter { color: #eee; } }
+
+#filter_container #filter:focus { border-color: #007acc; }
+
+#filter_container :disabled ~ label { color: #ccc; }
+
+@media (prefers-color-scheme: dark) { #filter_container :disabled ~ label { color: #444; } }
+
+#filter_container label { font-size: .875em; color: #666; }
+
+@media (prefers-color-scheme: dark) { #filter_container label { color: #aaa; } }
+
+header button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; background: #eee; color: inherit; text-decoration: none; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; }
+
+@media (prefers-color-scheme: dark) { header button { background: #333; } }
+
+@media (prefers-color-scheme: dark) { header button { border-color: #444; } }
+
+header button:active, header button:focus { outline: 2px dashed #007acc; }
+
+header button.run { background: #eeffee; }
+
+@media (prefers-color-scheme: dark) { header button.run { background: #373d29; } }
+
+header button.run.show_run { background: #dfd; border: 2px solid #00dd00; margin: 0 .1em; }
+
+@media (prefers-color-scheme: dark) { header button.run.show_run { background: #373d29; } }
+
+header button.mis { background: #ffeeee; }
+
+@media (prefers-color-scheme: dark) { header button.mis { background: #4b1818; } }
+
+header button.mis.show_mis { background: #fdd; border: 2px solid #ff0000; margin: 0 .1em; }
+
+@media (prefers-color-scheme: dark) { header button.mis.show_mis { background: #4b1818; } }
+
+header button.exc { background: #f7f7f7; }
+
+@media (prefers-color-scheme: dark) { header button.exc { background: #333; } }
+
+header button.exc.show_exc { background: #eee; border: 2px solid #808080; margin: 0 .1em; }
+
+@media (prefers-color-scheme: dark) { header button.exc.show_exc { background: #333; } }
+
+header button.par { background: #ffffd5; }
+
+@media (prefers-color-scheme: dark) { header button.par { background: #650; } }
+
+header button.par.show_par { background: #ffa; border: 2px solid #bbbb00; margin: 0 .1em; }
+
+@media (prefers-color-scheme: dark) { header button.par.show_par { background: #650; } }
+
+#help_panel, #source p .annotate.long { display: none; position: absolute; z-index: 999; background: #ffffcc; border: 1px solid #888; border-radius: .2em; color: #333; padding: .25em .5em; }
+
+#source p .annotate.long { white-space: normal; float: right; top: 1.75em; right: 1em; height: auto; }
+
+#help_panel_wrapper { float: right; position: relative; }
+
+#keyboard_icon { margin: 5px; }
+
+#help_panel_state { display: none; }
+
+#help_panel { top: 25px; right: 0; padding: .75em; border: 1px solid #883; color: #333; }
+
+#help_panel .keyhelp p { margin-top: .75em; }
+
+#help_panel .legend { font-style: italic; margin-bottom: 1em; }
+
+.indexfile #help_panel { width: 25em; }
+
+.pyfile #help_panel { width: 18em; }
+
+#help_panel_state:checked ~ #help_panel { display: block; }
+
+kbd { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em .35em; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: bold; background: #eee; border-radius: 3px; }
+
+#source { padding: 1em 0 1em 3.5rem; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
+
+#source p { position: relative; white-space: pre; }
+
+#source p * { box-sizing: border-box; }
+
+#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; user-select: none; }
+
+@media (prefers-color-scheme: dark) { #source p .n { color: #777; } }
+
+#source p .n.highlight { background: #ffdd00; }
+
+#source p .n a { scroll-margin-top: 6em; text-decoration: none; color: #999; }
+
+@media (prefers-color-scheme: dark) { #source p .n a { color: #777; } }
+
+#source p .n a:hover { text-decoration: underline; color: #999; }
+
+@media (prefers-color-scheme: dark) { #source p .n a:hover { color: #777; } }
+
+#source p .t { display: inline-block; width: 100%; box-sizing: border-box; margin-left: -.5em; padding-left: 0.3em; border-left: 0.2em solid #fff; }
+
+@media (prefers-color-scheme: dark) { #source p .t { border-color: #1e1e1e; } }
+
+#source p .t:hover { background: #f2f2f2; }
+
+@media (prefers-color-scheme: dark) { #source p .t:hover { background: #282828; } }
+
+#source p .t:hover ~ .r .annotate.long { display: block; }
+
+#source p .t .com { color: #008000; font-style: italic; line-height: 1px; }
+
+@media (prefers-color-scheme: dark) { #source p .t .com { color: #6a9955; } }
+
+#source p .t .key { font-weight: bold; line-height: 1px; }
+
+#source p .t .str { color: #0451a5; }
+
+@media (prefers-color-scheme: dark) { #source p .t .str { color: #9cdcfe; } }
+
+#source p.mis .t { border-left: 0.2em solid #ff0000; }
+
+#source p.mis.show_mis .t { background: #fdd; }
+
+@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t { background: #4b1818; } }
+
+#source p.mis.show_mis .t:hover { background: #f2d2d2; }
+
+@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t:hover { background: #532323; } }
+
+#source p.run .t { border-left: 0.2em solid #00dd00; }
+
+#source p.run.show_run .t { background: #dfd; }
+
+@media (prefers-color-scheme: dark) { #source p.run.show_run .t { background: #373d29; } }
+
+#source p.run.show_run .t:hover { background: #d2f2d2; }
+
+@media (prefers-color-scheme: dark) { #source p.run.show_run .t:hover { background: #404633; } }
+
+#source p.exc .t { border-left: 0.2em solid #808080; }
+
+#source p.exc.show_exc .t { background: #eee; }
+
+@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t { background: #333; } }
+
+#source p.exc.show_exc .t:hover { background: #e2e2e2; }
+
+@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t:hover { background: #3c3c3c; } }
+
+#source p.par .t { border-left: 0.2em solid #bbbb00; }
+
+#source p.par.show_par .t { background: #ffa; }
+
+@media (prefers-color-scheme: dark) { #source p.par.show_par .t { background: #650; } }
+
+#source p.par.show_par .t:hover { background: #f2f2a2; }
+
+@media (prefers-color-scheme: dark) { #source p.par.show_par .t:hover { background: #6d5d0c; } }
+
+#source p .r { position: absolute; top: 0; right: 2.5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
+
+#source p .annotate { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; color: #666; padding-right: .5em; }
+
+@media (prefers-color-scheme: dark) { #source p .annotate { color: #ddd; } }
+
+#source p .annotate.short:hover ~ .long { display: block; }
+
+#source p .annotate.long { width: 30em; right: 2.5em; }
+
+#source p input { display: none; }
+
+#source p input ~ .r label.ctx { cursor: pointer; border-radius: .25em; }
+
+#source p input ~ .r label.ctx::before { content: "â–¶ "; }
+
+#source p input ~ .r label.ctx:hover { background: #e8f4ff; color: #666; }
+
+@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { background: #0f3a42; } }
+
+@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { color: #aaa; } }
+
+#source p input:checked ~ .r label.ctx { background: #d0e8ff; color: #666; border-radius: .75em .75em 0 0; padding: 0 .5em; margin: -.25em 0; }
+
+@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { background: #056; } }
+
+@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { color: #aaa; } }
+
+#source p input:checked ~ .r label.ctx::before { content: "â–¼ "; }
+
+#source p input:checked ~ .ctxs { padding: .25em .5em; overflow-y: scroll; max-height: 10.5em; }
+
+#source p label.ctx { color: #999; display: inline-block; padding: 0 .5em; font-size: .8333em; }
+
+@media (prefers-color-scheme: dark) { #source p label.ctx { color: #777; } }
+
+#source p .ctxs { display: block; max-height: 0; overflow-y: hidden; transition: all .2s; padding: 0 .5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; white-space: nowrap; background: #d0e8ff; border-radius: .25em; margin-right: 1.75em; text-align: right; }
+
+@media (prefers-color-scheme: dark) { #source p .ctxs { background: #056; } }
+
+#index { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875em; }
+
+#index table.index { margin-left: -.5em; }
+
+#index td, #index th { text-align: right; padding: .25em .5em; border-bottom: 1px solid #eee; }
+
+@media (prefers-color-scheme: dark) { #index td, #index th { border-color: #333; } }
+
+#index td.name, #index th.name { text-align: left; width: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; min-width: 15em; }
+
+#index th { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-style: italic; color: #333; cursor: pointer; }
+
+@media (prefers-color-scheme: dark) { #index th { color: #ddd; } }
+
+#index th:hover { background: #eee; }
+
+@media (prefers-color-scheme: dark) { #index th:hover { background: #333; } }
+
+#index th .arrows { color: #666; font-size: 85%; font-family: sans-serif; font-style: normal; pointer-events: none; }
+
+#index th[aria-sort="ascending"], #index th[aria-sort="descending"] { white-space: nowrap; background: #eee; padding-left: .5em; }
+
+@media (prefers-color-scheme: dark) { #index th[aria-sort="ascending"], #index th[aria-sort="descending"] { background: #333; } }
+
+#index th[aria-sort="ascending"] .arrows::after { content: " â–²"; }
+
+#index th[aria-sort="descending"] .arrows::after { content: " â–¼"; }
+
+#index td.name { font-size: 1.15em; }
+
+#index td.name a { text-decoration: none; color: inherit; }
+
+#index td.name .no-noun { font-style: italic; }
+
+#index tr.total td, #index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; }
+
+#index tr.region:hover { background: #eee; }
+
+@media (prefers-color-scheme: dark) { #index tr.region:hover { background: #333; } }
+
+#index tr.region:hover td.name { text-decoration: underline; color: inherit; }
+
+#scroll_marker { position: fixed; z-index: 3; right: 0; top: 0; width: 16px; height: 100%; background: #fff; border-left: 1px solid #eee; will-change: transform; }
+
+@media (prefers-color-scheme: dark) { #scroll_marker { background: #1e1e1e; } }
+
+@media (prefers-color-scheme: dark) { #scroll_marker { border-color: #333; } }
+
+#scroll_marker .marker { background: #ccc; position: absolute; min-height: 3px; width: 100%; }
+
+@media (prefers-color-scheme: dark) { #scroll_marker .marker { background: #444; } }
diff --git a/pycov/style_cb_8e611ae1.css b/pycov/style_cb_8e611ae1.css
new file mode 100644
index 00000000..3cdaf05a
--- /dev/null
+++ b/pycov/style_cb_8e611ae1.css
@@ -0,0 +1,337 @@
+@charset "UTF-8";
+/* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */
+/* For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt */
+/* Don't edit this .css file. Edit the .scss file instead! */
+html, body, h1, h2, h3, p, table, td, th { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; }
+
+body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 1em; background: #fff; color: #000; }
+
+@media (prefers-color-scheme: dark) { body { background: #1e1e1e; } }
+
+@media (prefers-color-scheme: dark) { body { color: #eee; } }
+
+html > body { font-size: 16px; }
+
+a:active, a:focus { outline: 2px dashed #007acc; }
+
+p { font-size: .875em; line-height: 1.4em; }
+
+table { border-collapse: collapse; }
+
+td { vertical-align: top; }
+
+table tr.hidden { display: none !important; }
+
+p#no_rows { display: none; font-size: 1.15em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
+
+a.nav { text-decoration: none; color: inherit; }
+
+a.nav:hover { text-decoration: underline; color: inherit; }
+
+.hidden { display: none; }
+
+header { background: #f8f8f8; width: 100%; z-index: 2; border-bottom: 1px solid #ccc; }
+
+@media (prefers-color-scheme: dark) { header { background: black; } }
+
+@media (prefers-color-scheme: dark) { header { border-color: #333; } }
+
+header .content { padding: 1rem 3.5rem; }
+
+header h2 { margin-top: .5em; font-size: 1em; }
+
+header h2 a.button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; background: #eee; color: inherit; text-decoration: none; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; }
+
+@media (prefers-color-scheme: dark) { header h2 a.button { background: #333; } }
+
+@media (prefers-color-scheme: dark) { header h2 a.button { border-color: #444; } }
+
+header h2 a.button.current { border: 2px solid; background: #fff; border-color: #999; cursor: default; }
+
+@media (prefers-color-scheme: dark) { header h2 a.button.current { background: #1e1e1e; } }
+
+@media (prefers-color-scheme: dark) { header h2 a.button.current { border-color: #777; } }
+
+header p.text { margin: .5em 0 -.5em; color: #666; font-style: italic; }
+
+@media (prefers-color-scheme: dark) { header p.text { color: #aaa; } }
+
+header.sticky { position: fixed; left: 0; right: 0; height: 2.5em; }
+
+header.sticky .text { display: none; }
+
+header.sticky h1, header.sticky h2 { font-size: 1em; margin-top: 0; display: inline-block; }
+
+header.sticky .content { padding: 0.5rem 3.5rem; }
+
+header.sticky .content p { font-size: 1em; }
+
+header.sticky ~ #source { padding-top: 6.5em; }
+
+main { position: relative; z-index: 1; }
+
+footer { margin: 1rem 3.5rem; }
+
+footer .content { padding: 0; color: #666; font-style: italic; }
+
+@media (prefers-color-scheme: dark) { footer .content { color: #aaa; } }
+
+#index { margin: 1rem 0 0 3.5rem; }
+
+h1 { font-size: 1.25em; display: inline-block; }
+
+#filter_container { float: right; margin: 0 2em 0 0; line-height: 1.66em; }
+
+#filter_container #filter { width: 10em; padding: 0.2em 0.5em; border: 2px solid #ccc; background: #fff; color: #000; }
+
+@media (prefers-color-scheme: dark) { #filter_container #filter { border-color: #444; } }
+
+@media (prefers-color-scheme: dark) { #filter_container #filter { background: #1e1e1e; } }
+
+@media (prefers-color-scheme: dark) { #filter_container #filter { color: #eee; } }
+
+#filter_container #filter:focus { border-color: #007acc; }
+
+#filter_container :disabled ~ label { color: #ccc; }
+
+@media (prefers-color-scheme: dark) { #filter_container :disabled ~ label { color: #444; } }
+
+#filter_container label { font-size: .875em; color: #666; }
+
+@media (prefers-color-scheme: dark) { #filter_container label { color: #aaa; } }
+
+header button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; background: #eee; color: inherit; text-decoration: none; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; }
+
+@media (prefers-color-scheme: dark) { header button { background: #333; } }
+
+@media (prefers-color-scheme: dark) { header button { border-color: #444; } }
+
+header button:active, header button:focus { outline: 2px dashed #007acc; }
+
+header button.run { background: #eeffee; }
+
+@media (prefers-color-scheme: dark) { header button.run { background: #373d29; } }
+
+header button.run.show_run { background: #dfd; border: 2px solid #00dd00; margin: 0 .1em; }
+
+@media (prefers-color-scheme: dark) { header button.run.show_run { background: #373d29; } }
+
+header button.mis { background: #ffeeee; }
+
+@media (prefers-color-scheme: dark) { header button.mis { background: #4b1818; } }
+
+header button.mis.show_mis { background: #fdd; border: 2px solid #ff0000; margin: 0 .1em; }
+
+@media (prefers-color-scheme: dark) { header button.mis.show_mis { background: #4b1818; } }
+
+header button.exc { background: #f7f7f7; }
+
+@media (prefers-color-scheme: dark) { header button.exc { background: #333; } }
+
+header button.exc.show_exc { background: #eee; border: 2px solid #808080; margin: 0 .1em; }
+
+@media (prefers-color-scheme: dark) { header button.exc.show_exc { background: #333; } }
+
+header button.par { background: #ffffd5; }
+
+@media (prefers-color-scheme: dark) { header button.par { background: #650; } }
+
+header button.par.show_par { background: #ffa; border: 2px solid #bbbb00; margin: 0 .1em; }
+
+@media (prefers-color-scheme: dark) { header button.par.show_par { background: #650; } }
+
+#help_panel, #source p .annotate.long { display: none; position: absolute; z-index: 999; background: #ffffcc; border: 1px solid #888; border-radius: .2em; color: #333; padding: .25em .5em; }
+
+#source p .annotate.long { white-space: normal; float: right; top: 1.75em; right: 1em; height: auto; }
+
+#help_panel_wrapper { float: right; position: relative; }
+
+#keyboard_icon { margin: 5px; }
+
+#help_panel_state { display: none; }
+
+#help_panel { top: 25px; right: 0; padding: .75em; border: 1px solid #883; color: #333; }
+
+#help_panel .keyhelp p { margin-top: .75em; }
+
+#help_panel .legend { font-style: italic; margin-bottom: 1em; }
+
+.indexfile #help_panel { width: 25em; }
+
+.pyfile #help_panel { width: 18em; }
+
+#help_panel_state:checked ~ #help_panel { display: block; }
+
+kbd { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em .35em; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: bold; background: #eee; border-radius: 3px; }
+
+#source { padding: 1em 0 1em 3.5rem; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
+
+#source p { position: relative; white-space: pre; }
+
+#source p * { box-sizing: border-box; }
+
+#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; user-select: none; }
+
+@media (prefers-color-scheme: dark) { #source p .n { color: #777; } }
+
+#source p .n.highlight { background: #ffdd00; }
+
+#source p .n a { scroll-margin-top: 6em; text-decoration: none; color: #999; }
+
+@media (prefers-color-scheme: dark) { #source p .n a { color: #777; } }
+
+#source p .n a:hover { text-decoration: underline; color: #999; }
+
+@media (prefers-color-scheme: dark) { #source p .n a:hover { color: #777; } }
+
+#source p .t { display: inline-block; width: 100%; box-sizing: border-box; margin-left: -.5em; padding-left: 0.3em; border-left: 0.2em solid #fff; }
+
+@media (prefers-color-scheme: dark) { #source p .t { border-color: #1e1e1e; } }
+
+#source p .t:hover { background: #f2f2f2; }
+
+@media (prefers-color-scheme: dark) { #source p .t:hover { background: #282828; } }
+
+#source p .t:hover ~ .r .annotate.long { display: block; }
+
+#source p .t .com { color: #008000; font-style: italic; line-height: 1px; }
+
+@media (prefers-color-scheme: dark) { #source p .t .com { color: #6a9955; } }
+
+#source p .t .key { font-weight: bold; line-height: 1px; }
+
+#source p .t .str { color: #0451a5; }
+
+@media (prefers-color-scheme: dark) { #source p .t .str { color: #9cdcfe; } }
+
+#source p.mis .t { border-left: 0.2em solid #ff0000; }
+
+#source p.mis.show_mis .t { background: #fdd; }
+
+@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t { background: #4b1818; } }
+
+#source p.mis.show_mis .t:hover { background: #f2d2d2; }
+
+@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t:hover { background: #532323; } }
+
+#source p.run .t { border-left: 0.2em solid #00dd00; }
+
+#source p.run.show_run .t { background: #dfd; }
+
+@media (prefers-color-scheme: dark) { #source p.run.show_run .t { background: #373d29; } }
+
+#source p.run.show_run .t:hover { background: #d2f2d2; }
+
+@media (prefers-color-scheme: dark) { #source p.run.show_run .t:hover { background: #404633; } }
+
+#source p.exc .t { border-left: 0.2em solid #808080; }
+
+#source p.exc.show_exc .t { background: #eee; }
+
+@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t { background: #333; } }
+
+#source p.exc.show_exc .t:hover { background: #e2e2e2; }
+
+@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t:hover { background: #3c3c3c; } }
+
+#source p.par .t { border-left: 0.2em solid #bbbb00; }
+
+#source p.par.show_par .t { background: #ffa; }
+
+@media (prefers-color-scheme: dark) { #source p.par.show_par .t { background: #650; } }
+
+#source p.par.show_par .t:hover { background: #f2f2a2; }
+
+@media (prefers-color-scheme: dark) { #source p.par.show_par .t:hover { background: #6d5d0c; } }
+
+#source p .r { position: absolute; top: 0; right: 2.5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
+
+#source p .annotate { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; color: #666; padding-right: .5em; }
+
+@media (prefers-color-scheme: dark) { #source p .annotate { color: #ddd; } }
+
+#source p .annotate.short:hover ~ .long { display: block; }
+
+#source p .annotate.long { width: 30em; right: 2.5em; }
+
+#source p input { display: none; }
+
+#source p input ~ .r label.ctx { cursor: pointer; border-radius: .25em; }
+
+#source p input ~ .r label.ctx::before { content: "â–¶ "; }
+
+#source p input ~ .r label.ctx:hover { background: #e8f4ff; color: #666; }
+
+@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { background: #0f3a42; } }
+
+@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { color: #aaa; } }
+
+#source p input:checked ~ .r label.ctx { background: #d0e8ff; color: #666; border-radius: .75em .75em 0 0; padding: 0 .5em; margin: -.25em 0; }
+
+@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { background: #056; } }
+
+@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { color: #aaa; } }
+
+#source p input:checked ~ .r label.ctx::before { content: "â–¼ "; }
+
+#source p input:checked ~ .ctxs { padding: .25em .5em; overflow-y: scroll; max-height: 10.5em; }
+
+#source p label.ctx { color: #999; display: inline-block; padding: 0 .5em; font-size: .8333em; }
+
+@media (prefers-color-scheme: dark) { #source p label.ctx { color: #777; } }
+
+#source p .ctxs { display: block; max-height: 0; overflow-y: hidden; transition: all .2s; padding: 0 .5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; white-space: nowrap; background: #d0e8ff; border-radius: .25em; margin-right: 1.75em; text-align: right; }
+
+@media (prefers-color-scheme: dark) { #source p .ctxs { background: #056; } }
+
+#index { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875em; }
+
+#index table.index { margin-left: -.5em; }
+
+#index td, #index th { text-align: right; padding: .25em .5em; border-bottom: 1px solid #eee; }
+
+@media (prefers-color-scheme: dark) { #index td, #index th { border-color: #333; } }
+
+#index td.name, #index th.name { text-align: left; width: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; min-width: 15em; }
+
+#index th { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-style: italic; color: #333; cursor: pointer; }
+
+@media (prefers-color-scheme: dark) { #index th { color: #ddd; } }
+
+#index th:hover { background: #eee; }
+
+@media (prefers-color-scheme: dark) { #index th:hover { background: #333; } }
+
+#index th .arrows { color: #666; font-size: 85%; font-family: sans-serif; font-style: normal; pointer-events: none; }
+
+#index th[aria-sort="ascending"], #index th[aria-sort="descending"] { white-space: nowrap; background: #eee; padding-left: .5em; }
+
+@media (prefers-color-scheme: dark) { #index th[aria-sort="ascending"], #index th[aria-sort="descending"] { background: #333; } }
+
+#index th[aria-sort="ascending"] .arrows::after { content: " â–²"; }
+
+#index th[aria-sort="descending"] .arrows::after { content: " â–¼"; }
+
+#index td.name { font-size: 1.15em; }
+
+#index td.name a { text-decoration: none; color: inherit; }
+
+#index td.name .no-noun { font-style: italic; }
+
+#index tr.total td, #index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; }
+
+#index tr.region:hover { background: #eee; }
+
+@media (prefers-color-scheme: dark) { #index tr.region:hover { background: #333; } }
+
+#index tr.region:hover td.name { text-decoration: underline; color: inherit; }
+
+#scroll_marker { position: fixed; z-index: 3; right: 0; top: 0; width: 16px; height: 100%; background: #fff; border-left: 1px solid #eee; will-change: transform; }
+
+@media (prefers-color-scheme: dark) { #scroll_marker { background: #1e1e1e; } }
+
+@media (prefers-color-scheme: dark) { #scroll_marker { border-color: #333; } }
+
+#scroll_marker .marker { background: #ccc; position: absolute; min-height: 3px; width: 100%; }
+
+@media (prefers-color-scheme: dark) { #scroll_marker .marker { background: #444; } }
diff --git a/pycov/z_143e04ff0a847ff6___init___py.html b/pycov/z_143e04ff0a847ff6___init___py.html
new file mode 100644
index 00000000..c5583298
--- /dev/null
+++ b/pycov/z_143e04ff0a847ff6___init___py.html
@@ -0,0 +1,120 @@
+
+
+
+
+ Coverage for kpex/util/__init__.py: 100%
+
+
+
+
+
+
+
+ 1#
+ 2# --------------------------------------------------------------------------------
+ 3# SPDX-FileCopyrightText: 2024 Martin Jan Köhler and Harald Pretl
+ 4# Johannes Kepler University, Institute for Integrated Circuits.
+ 5#
+ 6# This file is part of KPEX
+ 7# (see https://github.com/martinjankoehler/klayout-pex).
+ 8#
+ 9# This program is free software: you can redistribute it and/or modify
+ 10# it under the terms of the GNU General Public License as published by
+ 11# the Free Software Foundation, either version 3 of the License, or
+ 12# (at your option) any later version.
+ 13#
+ 14# This program is distributed in the hope that it will be useful,
+ 15# but WITHOUT ANY WARRANTY; without even the implied warranty of
+ 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 17# GNU General Public License for more details.
+ 18#
+ 19# You should have received a copy of the GNU General Public License
+ 20# along with this program. If not, see <http://www.gnu.org/licenses/>.
+ 21# SPDX-License-Identifier: GPL-3.0-or-later
+ 22# --------------------------------------------------------------------------------
+ 23#
+
+
+
+
diff --git a/pycov/z_143e04ff0a847ff6_argparse_helpers_py.html b/pycov/z_143e04ff0a847ff6_argparse_helpers_py.html
new file mode 100644
index 00000000..eabf3457
--- /dev/null
+++ b/pycov/z_143e04ff0a847ff6_argparse_helpers_py.html
@@ -0,0 +1,149 @@
+
+
+
+
+ Coverage for kpex/util/argparse_helpers.py: 25%
+
+
+
+
+
+
+
+ 1#! /usr/bin/env python3
+ 2#
+ 3# --------------------------------------------------------------------------------
+ 4# SPDX-FileCopyrightText: 2024 Martin Jan Köhler and Harald Pretl
+ 5# Johannes Kepler University, Institute for Integrated Circuits.
+ 6#
+ 7# This file is part of KPEX
+ 8# (see https://github.com/martinjankoehler/klayout-pex).
+ 9#
+ 10# This program is free software: you can redistribute it and/or modify
+ 11# it under the terms of the GNU General Public License as published by
+ 12# the Free Software Foundation, either version 3 of the License, or
+ 13# (at your option) any later version.
+ 14#
+ 15# This program is distributed in the hope that it will be useful,
+ 16# but WITHOUT ANY WARRANTY; without even the implied warranty of
+ 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 18# GNU General Public License for more details.
+ 19#
+ 20# You should have received a copy of the GNU General Public License
+ 21# along with this program. If not, see <http://www.gnu.org/licenses/>.
+ 22# SPDX-License-Identifier: GPL-3.0-or-later
+ 23# --------------------------------------------------------------------------------
+ 24#
+ 25
+ 26import argparse
+ 27from enum import Enum
+ 28from typing import *
+ 29
+ 30
+ 31def render_enum_help(topic: str,
+ 32 enum_cls: Type[Enum],
+ 33 print_default: bool = True) -> str:
+ 34 if not hasattr(enum_cls, 'DEFAULT'):
+ 35 raise ValueError("Enum must declare case 'DEFAULT'")
+ 36 enum_help = f"{topic} ∈ {set([name.lower() for name, member in enum_cls.__members__.items()])}"
+ 37 if print_default:
+ 38 enum_help += f".\nDefaults to '{enum_cls.DEFAULT.name.lower()}'"
+ 39 return enum_help
+ 40
+ 41
+ 42def true_or_false(arg) -> bool:
+ 43 if isinstance(arg, bool):
+ 44 return arg
+ 45
+ 46 match str(arg).lower():
+ 47 case 'yes' | 'true' | 't' | 'y' | 1:
+ 48 return True
+ 49 case 'no' | 'false' | 'f' | 'n' | 0:
+ 50 return False
+ 51 case _:
+ 52 raise argparse.ArgumentTypeError('Boolean value expected.')
+
+
+
+
diff --git a/pycov/z_143e04ff0a847ff6_multiple_choice_py.html b/pycov/z_143e04ff0a847ff6_multiple_choice_py.html
new file mode 100644
index 00000000..e86f8dcb
--- /dev/null
+++ b/pycov/z_143e04ff0a847ff6_multiple_choice_py.html
@@ -0,0 +1,167 @@
+
+
+
+
+ Coverage for kpex/util/multiple_choice.py: 61%
+
+
+
+
+
+
+
+ 1#
+ 2# --------------------------------------------------------------------------------
+ 3# SPDX-FileCopyrightText: 2024 Martin Jan Köhler and Harald Pretl
+ 4# Johannes Kepler University, Institute for Integrated Circuits.
+ 5#
+ 6# This file is part of KPEX
+ 7# (see https://github.com/martinjankoehler/klayout-pex).
+ 8#
+ 9# This program is free software: you can redistribute it and/or modify
+ 10# it under the terms of the GNU General Public License as published by
+ 11# the Free Software Foundation, either version 3 of the License, or
+ 12# (at your option) any later version.
+ 13#
+ 14# This program is distributed in the hope that it will be useful,
+ 15# but WITHOUT ANY WARRANTY; without even the implied warranty of
+ 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 17# GNU General Public License for more details.
+ 18#
+ 19# You should have received a copy of the GNU General Public License
+ 20# along with this program. If not, see <http://www.gnu.org/licenses/>.
+ 21# SPDX-License-Identifier: GPL-3.0-or-later
+ 22# --------------------------------------------------------------------------------
+ 23#
+ 24from __future__ import annotations
+ 25from functools import cached_property
+ 26from typing import *
+ 27
+ 28
+ 29class MultipleChoicePattern:
+ 30 def __init__(self, pattern: str):
+ 31 """
+ 32 Multiple Choice pattern, allows blacklisting and whitelisting.
+ 33 For example, given a list of dielectric, let the user decide which of them to include or exclude.
+ 34 Allowed patterns:
+ 35 - all (default): complete list of choices included
+ 36 - none: no choices included at all
+ 37 - +dielname: include choice named 'dielname'
+ 38 - -dielname: exclude choice named 'dielname'
+ 39 Examples:
+ 40 - all,-nild5,-nild6
+ 41 - include all dielectrics except nild5 and nild6
+ 42 - none,+nild5,+capild
+ 43 - include only dielectrics named nild5 and capild
+ 44 """
+ 45 self.pattern = pattern
+ 46
+ 47 components = pattern.split(sep=',')
+ 48 components = [c.lower().strip() for c in components]
+ 49 self.has_all = 'all' in components
+ 50 self.has_none = 'none' in components
+ 51 self.included = [c[1:] for c in components if c.startswith('+')]
+ 52 self.excluded = [c[1:] for c in components if c.startswith('-')]
+ 53 if self.has_none and self.has_all:
+ 54 raise ValueError("Multiple choice pattern can't have both subpatterns all and none")
+ 55 if self.has_none and len(self.excluded) >= 1:
+ 56 raise ValueError("Multiple choice pattern based on none can only have inclusive (+) subpatterns")
+ 57 if self.has_all and len(self.included) >= 1:
+ 58 raise ValueError("Multiple choice pattern based on all can only have exclusive (-) subpatterns")
+ 59
+ 60 def filter(self, choices: List[str]) -> List[str]:
+ 61 if self.has_all:
+ 62 return [c for c in choices if c not in self.excluded]
+ 63 return [c for c in choices if c in self.included]
+ 64
+ 65 def is_included(self, choice: str) -> bool:
+ 66 if self.has_none:
+ 67 return choice in self.included
+ 68 if self.has_all:
+ 69 return choice not in self.excluded
+ 70 return False
+
+
+
+
diff --git a/pycov/z_1e5163ca105fd3f6_process_parasitics_pb2_py.html b/pycov/z_1e5163ca105fd3f6_process_parasitics_pb2_py.html
new file mode 100644
index 00000000..0e03a63e
--- /dev/null
+++ b/pycov/z_1e5163ca105fd3f6_process_parasitics_pb2_py.html
@@ -0,0 +1,151 @@
+
+
+
+
+ Coverage for build/python_kpex_protobuf/process_parasitics_pb2.py: 36%
+
+
+
+
+
+
+
+ 1# -*- coding: utf-8 -*-
+ 2# Generated by the protocol buffer compiler. DO NOT EDIT!
+ 3# NO CHECKED-IN PROTOBUF GENCODE
+ 4# source: process_parasitics.proto
+ 5# Protobuf Python Version: 5.29.0
+ 6"""Generated protocol buffer code."""
+ 7from google.protobuf import descriptor as _descriptor
+ 8from google.protobuf import descriptor_pool as _descriptor_pool
+ 9from google.protobuf import runtime_version as _runtime_version
+ 10from google.protobuf import symbol_database as _symbol_database
+ 11from google.protobuf.internal import builder as _builder
+ 12_runtime_version.ValidateProtobufRuntimeVersion(
+ 13 _runtime_version.Domain.PUBLIC,
+ 14 5,
+ 15 29,
+ 16 0,
+ 17 '',
+ 18 'process_parasitics.proto'
+ 19)
+ 20# @@protoc_insertion_point(imports)
+ 21
+ 22_sym_db = _symbol_database.Default()
+ 23
+ 24
+ 25
+ 26
+ 27DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18process_parasitics.proto\x12\tkpex.tech\"\x8a\x01\n\x15ProcessParasiticsInfo\x12\x11\n\tside_halo\x18\n \x01(\x05\x12-\n\nresistance\x18n \x01(\x0b\x32\x19.kpex.tech.ResistanceInfo\x12/\n\x0b\x63\x61pacitance\x18o \x01(\x0b\x32\x1a.kpex.tech.CapacitanceInfo\"\x98\x02\n\x0eResistanceInfo\x12\x39\n\x06layers\x18\x01 \x03(\x0b\x32).kpex.tech.ResistanceInfo.LayerResistance\x12\x35\n\x04vias\x18\x02 \x03(\x0b\x32\'.kpex.tech.ResistanceInfo.ViaResistance\x1a]\n\x0fLayerResistance\x12\x12\n\nlayer_name\x18\x01 \x01(\t\x12\x12\n\nresistance\x18\x02 \x01(\x01\x12\"\n\x1a\x63orner_adjustment_fraction\x18\x03 \x01(\x01\x1a\x35\n\rViaResistance\x12\x10\n\x08via_name\x18\x01 \x01(\t\x12\x12\n\nresistance\x18\x02 \x01(\x01\"\x98\x05\n\x0f\x43\x61pacitanceInfo\x12\x44\n\nsubstrates\x18\xc8\x01 \x03(\x0b\x32/.kpex.tech.CapacitanceInfo.SubstrateCapacitance\x12@\n\x08overlaps\x18\xc9\x01 \x03(\x0b\x32-.kpex.tech.CapacitanceInfo.OverlapCapacitance\x12\x42\n\tsidewalls\x18\xca\x01 \x03(\x0b\x32..kpex.tech.CapacitanceInfo.SidewallCapacitance\x12H\n\x0csideoverlaps\x18\xcb\x01 \x03(\x0b\x32\x31.kpex.tech.CapacitanceInfo.SideOverlapCapacitance\x1a\x63\n\x14SubstrateCapacitance\x12\x12\n\nlayer_name\x18\x01 \x01(\t\x12\x18\n\x10\x61rea_capacitance\x18\x02 \x01(\x01\x12\x1d\n\x15perimeter_capacitance\x18\x03 \x01(\x01\x1a\\\n\x12OverlapCapacitance\x12\x16\n\x0etop_layer_name\x18\x01 \x01(\t\x12\x19\n\x11\x62ottom_layer_name\x18\x02 \x01(\t\x12\x13\n\x0b\x63\x61pacitance\x18\x03 \x01(\x01\x1aN\n\x13SidewallCapacitance\x12\x12\n\nlayer_name\x18\x01 \x01(\t\x12\x13\n\x0b\x63\x61pacitance\x18\x02 \x01(\x01\x12\x0e\n\x06offset\x18\x03 \x01(\x01\x1a\\\n\x16SideOverlapCapacitance\x12\x15\n\rin_layer_name\x18\x01 \x01(\t\x12\x16\n\x0eout_layer_name\x18\x02 \x01(\t\x12\x13\n\x0b\x63\x61pacitance\x18\x03 \x01(\x01\"\x0e\n\x0cStyleVariantb\x06proto3')
+ 28
+ 29_globals = globals()
+ 30_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
+ 31_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'process_parasitics_pb2', _globals)
+ 32if not _descriptor._USE_C_DESCRIPTORS:
+ 33 DESCRIPTOR._loaded_options = None
+ 34 _globals['_PROCESSPARASITICSINFO']._serialized_start=40
+ 35 _globals['_PROCESSPARASITICSINFO']._serialized_end=178
+ 36 _globals['_RESISTANCEINFO']._serialized_start=181
+ 37 _globals['_RESISTANCEINFO']._serialized_end=461
+ 38 _globals['_RESISTANCEINFO_LAYERRESISTANCE']._serialized_start=313
+ 39 _globals['_RESISTANCEINFO_LAYERRESISTANCE']._serialized_end=406
+ 40 _globals['_RESISTANCEINFO_VIARESISTANCE']._serialized_start=408
+ 41 _globals['_RESISTANCEINFO_VIARESISTANCE']._serialized_end=461
+ 42 _globals['_CAPACITANCEINFO']._serialized_start=464
+ 43 _globals['_CAPACITANCEINFO']._serialized_end=1128
+ 44 _globals['_CAPACITANCEINFO_SUBSTRATECAPACITANCE']._serialized_start=761
+ 45 _globals['_CAPACITANCEINFO_SUBSTRATECAPACITANCE']._serialized_end=860
+ 46 _globals['_CAPACITANCEINFO_OVERLAPCAPACITANCE']._serialized_start=862
+ 47 _globals['_CAPACITANCEINFO_OVERLAPCAPACITANCE']._serialized_end=954
+ 48 _globals['_CAPACITANCEINFO_SIDEWALLCAPACITANCE']._serialized_start=956
+ 49 _globals['_CAPACITANCEINFO_SIDEWALLCAPACITANCE']._serialized_end=1034
+ 50 _globals['_CAPACITANCEINFO_SIDEOVERLAPCAPACITANCE']._serialized_start=1036
+ 51 _globals['_CAPACITANCEINFO_SIDEOVERLAPCAPACITANCE']._serialized_end=1128
+ 52 _globals['_STYLEVARIANT']._serialized_start=1130
+ 53 _globals['_STYLEVARIANT']._serialized_end=1144
+ 54# @@protoc_insertion_point(module_scope)
+
+
+
+
diff --git a/pycov/z_1e5163ca105fd3f6_process_stack_pb2_py.html b/pycov/z_1e5163ca105fd3f6_process_stack_pb2_py.html
new file mode 100644
index 00000000..c35477fd
--- /dev/null
+++ b/pycov/z_1e5163ca105fd3f6_process_stack_pb2_py.html
@@ -0,0 +1,155 @@
+
+
+
+
+ Coverage for build/python_kpex_protobuf/process_stack_pb2.py: 32%
+
+
+
+
+
+
+
+ 1# -*- coding: utf-8 -*-
+ 2# Generated by the protocol buffer compiler. DO NOT EDIT!
+ 3# NO CHECKED-IN PROTOBUF GENCODE
+ 4# source: process_stack.proto
+ 5# Protobuf Python Version: 5.29.0
+ 6"""Generated protocol buffer code."""
+ 7from google.protobuf import descriptor as _descriptor
+ 8from google.protobuf import descriptor_pool as _descriptor_pool
+ 9from google.protobuf import runtime_version as _runtime_version
+ 10from google.protobuf import symbol_database as _symbol_database
+ 11from google.protobuf.internal import builder as _builder
+ 12_runtime_version.ValidateProtobufRuntimeVersion(
+ 13 _runtime_version.Domain.PUBLIC,
+ 14 5,
+ 15 29,
+ 16 0,
+ 17 '',
+ 18 'process_stack.proto'
+ 19)
+ 20# @@protoc_insertion_point(imports)
+ 21
+ 22_sym_db = _symbol_database.Default()
+ 23
+ 24
+ 25
+ 26
+ 27DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13process_stack.proto\x12\tkpex.tech\"\xb5\x0f\n\x10ProcessStackInfo\x12\x35\n\x06layers\x18\x64 \x03(\x0b\x32%.kpex.tech.ProcessStackInfo.LayerInfo\x1a?\n\x07\x43ontact\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0bmetal_above\x18\n \x01(\t\x12\x11\n\tthickness\x18\x14 \x01(\x01\x1a\x46\n\x0eSubstrateLayer\x12\x0e\n\x06height\x18\x01 \x01(\x01\x12\x11\n\tthickness\x18\x02 \x01(\x01\x12\x11\n\treference\x18\x1e \x01(\t\x1ak\n\nNWellLayer\x12\x0e\n\x06height\x18\x01 \x01(\x01\x12\x11\n\treference\x18\x1e \x01(\t\x12:\n\rcontact_above\x18( \x01(\x0b\x32#.kpex.tech.ProcessStackInfo.Contact\x1ao\n\x0e\x44iffusionLayer\x12\x0e\n\x06height\x18\x01 \x01(\x01\x12\x11\n\treference\x18\x1e \x01(\t\x12:\n\rcontact_above\x18( \x01(\x0b\x32#.kpex.tech.ProcessStackInfo.Contact\x1a\'\n\x0f\x46ieldOxideLayer\x12\x14\n\x0c\x64ielectric_k\x18\n \x01(\x01\x1a@\n\x15SimpleDielectricLayer\x12\x14\n\x0c\x64ielectric_k\x18\n \x01(\x01\x12\x11\n\treference\x18\x1e \x01(\t\x1a\x9f\x01\n\x18\x43onformalDielectricLayer\x12\x14\n\x0c\x64ielectric_k\x18\n \x01(\x01\x12\x1c\n\x14thickness_over_metal\x18\x14 \x01(\x01\x12 \n\x18thickness_where_no_metal\x18\x15 \x01(\x01\x12\x1a\n\x12thickness_sidewall\x18\x16 \x01(\x01\x12\x11\n\treference\x18\x1e \x01(\t\x1a~\n\x17SidewallDielectricLayer\x12\x14\n\x0c\x64ielectric_k\x18\n \x01(\x01\x12\x1a\n\x12height_above_metal\x18\x14 \x01(\x01\x12\x1e\n\x16width_outside_sidewall\x18\x15 \x01(\x01\x12\x11\n\treference\x18\x1e \x01(\t\x1a\x9d\x01\n\nMetalLayer\x12\x0e\n\x06height\x18\x01 \x01(\x01\x12\x11\n\tthickness\x18\x02 \x01(\x01\x12\x17\n\x0freference_below\x18\x1e \x01(\t\x12\x17\n\x0freference_above\x18\x1f \x01(\t\x12:\n\rcontact_above\x18( \x01(\x0b\x32#.kpex.tech.ProcessStackInfo.Contact\x1a\xc4\x05\n\tLayerInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x39\n\nlayer_type\x18\x02 \x01(\x0e\x32%.kpex.tech.ProcessStackInfo.LayerType\x12\x45\n\x0fsubstrate_layer\x18Z \x01(\x0b\x32*.kpex.tech.ProcessStackInfo.SubstrateLayerH\x00\x12=\n\x0bnwell_layer\x18\t \x01(\x0b\x32&.kpex.tech.ProcessStackInfo.NWellLayerH\x00\x12\x45\n\x0f\x64iffusion_layer\x18\n \x01(\x0b\x32*.kpex.tech.ProcessStackInfo.DiffusionLayerH\x00\x12H\n\x11\x66ield_oxide_layer\x18\x0b \x01(\x0b\x32+.kpex.tech.ProcessStackInfo.FieldOxideLayerH\x00\x12T\n\x17simple_dielectric_layer\x18\x0c \x01(\x0b\x32\x31.kpex.tech.ProcessStackInfo.SimpleDielectricLayerH\x00\x12Z\n\x1a\x63onformal_dielectric_layer\x18\r \x01(\x0b\x32\x34.kpex.tech.ProcessStackInfo.ConformalDielectricLayerH\x00\x12X\n\x19sidewall_dielectric_layer\x18\x0e \x01(\x0b\x32\x33.kpex.tech.ProcessStackInfo.SidewallDielectricLayerH\x00\x12=\n\x0bmetal_layer\x18\x0f \x01(\x0b\x32&.kpex.tech.ProcessStackInfo.MetalLayerH\x00\x42\x0c\n\nparameters\"\x8e\x02\n\tLayerType\x12\x1a\n\x16LAYER_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14LAYER_TYPE_SUBSTRATE\x10\n\x12\x14\n\x10LAYER_TYPE_NWELL\x10\x14\x12\x18\n\x14LAYER_TYPE_DIFFUSION\x10\x1e\x12\x1a\n\x16LAYER_TYPE_FIELD_OXIDE\x10(\x12 \n\x1cLAYER_TYPE_SIMPLE_DIELECTRIC\x10\x32\x12#\n\x1fLAYER_TYPE_CONFORMAL_DIELECTRIC\x10<\x12\"\n\x1eLAYER_TYPE_SIDEWALL_DIELECTRIC\x10\x46\x12\x14\n\x10LAYER_TYPE_METAL\x10Pb\x06proto3')
+ 28
+ 29_globals = globals()
+ 30_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
+ 31_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'process_stack_pb2', _globals)
+ 32if not _descriptor._USE_C_DESCRIPTORS:
+ 33 DESCRIPTOR._loaded_options = None
+ 34 _globals['_PROCESSSTACKINFO']._serialized_start=35
+ 35 _globals['_PROCESSSTACKINFO']._serialized_end=2008
+ 36 _globals['_PROCESSSTACKINFO_CONTACT']._serialized_start=110
+ 37 _globals['_PROCESSSTACKINFO_CONTACT']._serialized_end=173
+ 38 _globals['_PROCESSSTACKINFO_SUBSTRATELAYER']._serialized_start=175
+ 39 _globals['_PROCESSSTACKINFO_SUBSTRATELAYER']._serialized_end=245
+ 40 _globals['_PROCESSSTACKINFO_NWELLLAYER']._serialized_start=247
+ 41 _globals['_PROCESSSTACKINFO_NWELLLAYER']._serialized_end=354
+ 42 _globals['_PROCESSSTACKINFO_DIFFUSIONLAYER']._serialized_start=356
+ 43 _globals['_PROCESSSTACKINFO_DIFFUSIONLAYER']._serialized_end=467
+ 44 _globals['_PROCESSSTACKINFO_FIELDOXIDELAYER']._serialized_start=469
+ 45 _globals['_PROCESSSTACKINFO_FIELDOXIDELAYER']._serialized_end=508
+ 46 _globals['_PROCESSSTACKINFO_SIMPLEDIELECTRICLAYER']._serialized_start=510
+ 47 _globals['_PROCESSSTACKINFO_SIMPLEDIELECTRICLAYER']._serialized_end=574
+ 48 _globals['_PROCESSSTACKINFO_CONFORMALDIELECTRICLAYER']._serialized_start=577
+ 49 _globals['_PROCESSSTACKINFO_CONFORMALDIELECTRICLAYER']._serialized_end=736
+ 50 _globals['_PROCESSSTACKINFO_SIDEWALLDIELECTRICLAYER']._serialized_start=738
+ 51 _globals['_PROCESSSTACKINFO_SIDEWALLDIELECTRICLAYER']._serialized_end=864
+ 52 _globals['_PROCESSSTACKINFO_METALLAYER']._serialized_start=867
+ 53 _globals['_PROCESSSTACKINFO_METALLAYER']._serialized_end=1024
+ 54 _globals['_PROCESSSTACKINFO_LAYERINFO']._serialized_start=1027
+ 55 _globals['_PROCESSSTACKINFO_LAYERINFO']._serialized_end=1735
+ 56 _globals['_PROCESSSTACKINFO_LAYERTYPE']._serialized_start=1738
+ 57 _globals['_PROCESSSTACKINFO_LAYERTYPE']._serialized_end=2008
+ 58# @@protoc_insertion_point(module_scope)
+
+
+
+
diff --git a/pycov/z_1e5163ca105fd3f6_tech_pb2_py.html b/pycov/z_1e5163ca105fd3f6_tech_pb2_py.html
new file mode 100644
index 00000000..8a4797fb
--- /dev/null
+++ b/pycov/z_1e5163ca105fd3f6_tech_pb2_py.html
@@ -0,0 +1,141 @@
+
+
+
+
+ Coverage for build/python_kpex_protobuf/tech_pb2.py: 61%
+
+
+
+
+
+
+
+ 1# -*- coding: utf-8 -*-
+ 2# Generated by the protocol buffer compiler. DO NOT EDIT!
+ 3# NO CHECKED-IN PROTOBUF GENCODE
+ 4# source: tech.proto
+ 5# Protobuf Python Version: 5.29.0
+ 6"""Generated protocol buffer code."""
+ 7from google.protobuf import descriptor as _descriptor
+ 8from google.protobuf import descriptor_pool as _descriptor_pool
+ 9from google.protobuf import runtime_version as _runtime_version
+ 10from google.protobuf import symbol_database as _symbol_database
+ 11from google.protobuf.internal import builder as _builder
+ 12_runtime_version.ValidateProtobufRuntimeVersion(
+ 13 _runtime_version.Domain.PUBLIC,
+ 14 5,
+ 15 29,
+ 16 0,
+ 17 '',
+ 18 'tech.proto'
+ 19)
+ 20# @@protoc_insertion_point(imports)
+ 21
+ 22_sym_db = _symbol_database.Default()
+ 23
+ 24
+ 25import process_stack_pb2 as process__stack__pb2
+ 26import process_parasitics_pb2 as process__parasitics__pb2
+ 27
+ 28
+ 29DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\ntech.proto\x12\tkpex.tech\x1a\x13process_stack.proto\x1a\x18process_parasitics.proto\"\xef\x01\n\nTechnology\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x06layers\x18\x65 \x03(\x0b\x32\x14.kpex.tech.LayerInfo\x12\x39\n\x13lvs_computed_layers\x18x \x03(\x0b\x32\x1c.kpex.tech.ComputedLayerInfo\x12\x33\n\rprocess_stack\x18\x8c\x01 \x01(\x0b\x32\x1b.kpex.tech.ProcessStackInfo\x12=\n\x12process_parasitics\x18\xc8\x01 \x01(\x0b\x32 .kpex.tech.ProcessParasiticsInfo\"W\n\tLayerInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x0b \x01(\t\x12\x11\n\tgds_layer\x18\x15 \x01(\r\x12\x14\n\x0cgds_datatype\x18\x1f \x01(\r\"\xf0\x01\n\x11\x43omputedLayerInfo\x12/\n\x04kind\x18\n \x01(\x0e\x32!.kpex.tech.ComputedLayerInfo.Kind\x12(\n\nlayer_info\x18\x14 \x01(\x0b\x32\x14.kpex.tech.LayerInfo\x12\x1b\n\x13original_layer_name\x18\x1e \x01(\t\"c\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x10\n\x0cKIND_REGULAR\x10\x01\x12\x19\n\x15KIND_DEVICE_CAPACITOR\x10\x02\x12\x18\n\x14KIND_DEVICE_RESISTOR\x10\x03\x62\x06proto3')
+ 30
+ 31_globals = globals()
+ 32_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
+ 33_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tech_pb2', _globals)
+ 34if not _descriptor._USE_C_DESCRIPTORS:
+ 35 DESCRIPTOR._loaded_options = None
+ 36 _globals['_TECHNOLOGY']._serialized_start=73
+ 37 _globals['_TECHNOLOGY']._serialized_end=312
+ 38 _globals['_LAYERINFO']._serialized_start=314
+ 39 _globals['_LAYERINFO']._serialized_end=401
+ 40 _globals['_COMPUTEDLAYERINFO']._serialized_start=404
+ 41 _globals['_COMPUTEDLAYERINFO']._serialized_end=644
+ 42 _globals['_COMPUTEDLAYERINFO_KIND']._serialized_start=545
+ 43 _globals['_COMPUTEDLAYERINFO_KIND']._serialized_end=644
+ 44# @@protoc_insertion_point(module_scope)
+
+
+
+
diff --git a/pycov/z_2a1ea3ee988f9971_fastcap_runner_test_py.html b/pycov/z_2a1ea3ee988f9971_fastcap_runner_test_py.html
new file mode 100644
index 00000000..fcf0015d
--- /dev/null
+++ b/pycov/z_2a1ea3ee988f9971_fastcap_runner_test_py.html
@@ -0,0 +1,150 @@
+
+
+
+
+ Coverage for tests/fastcap/fastcap_runner_test.py: 100%
+
+
+
+
+
+
+
+ 1#
+ 2# --------------------------------------------------------------------------------
+ 3# SPDX-FileCopyrightText: 2024 Martin Jan Köhler and Harald Pretl
+ 4# Johannes Kepler University, Institute for Integrated Circuits.
+ 5#
+ 6# This file is part of KPEX
+ 7# (see https://github.com/martinjankoehler/klayout-pex).
+ 8#
+ 9# This program is free software: you can redistribute it and/or modify
+ 10# it under the terms of the GNU General Public License as published by
+ 11# the Free Software Foundation, either version 3 of the License, or
+ 12# (at your option) any later version.
+ 13#
+ 14# This program is distributed in the hope that it will be useful,
+ 15# but WITHOUT ANY WARRANTY; without even the implied warranty of
+ 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 17# GNU General Public License for more details.
+ 18#
+ 19# You should have received a copy of the GNU General Public License
+ 20# along with this program. If not, see <http://www.gnu.org/licenses/>.
+ 21# SPDX-License-Identifier: GPL-3.0-or-later
+ 22# --------------------------------------------------------------------------------
+ 23#
+ 24import allure
+ 25import os
+ 26import unittest
+ 27
+ 28from kpex.fastcap.fastcap_runner import fastcap_parse_capacitance_matrix
+ 29
+ 30
+ 31@allure.parent_suite("Unit Tests")
+ 32@allure.tag("Capacitance", "FastCap")
+ 33class Test(unittest.TestCase):
+ 34 @property
+ 35 def fastcap_testdata_dir(self) -> str:
+ 36 return os.path.realpath(os.path.join(__file__, '..', '..', '..', 'testdata', 'fastcap'))
+ 37
+ 38 def test_fastcap_parse_capacitance_matrix(self):
+ 39 testdata_path = os.path.join(self.fastcap_testdata_dir, 'cap_mim_m3_w18p9_l5p1__REDUX122_FastCap_Output.txt')
+ 40 obtained_matrix = fastcap_parse_capacitance_matrix(log_path=testdata_path)
+ 41 self.assertEqual(4, len(obtained_matrix.rows))
+ 42 self.assertEqual(4, len(obtained_matrix.rows[0]))
+ 43 self.assertEqual(4, len(obtained_matrix.rows[1]))
+ 44 self.assertEqual(4, len(obtained_matrix.rows[2]))
+ 45 self.assertEqual(4, len(obtained_matrix.rows[3]))
+ 46 self.assertEqual(
+ 47 ['$1%GROUP2', '$1%GROUP2', '$2%GROUP3', '$2%GROUP3'],
+ 48 obtained_matrix.conductor_names
+ 49 )
+ 50
+ 51 output_path = os.path.join(self.fastcap_testdata_dir, 'cap_mim_m3_w18p9_l5p1__REDUX122_FastCap_Result_Matrix.csv')
+ 52 obtained_matrix.write_csv(output_path=output_path, separator=';')
+ 53 allure.attach.file(output_path, attachment_type=allure.attachment_type.CSV)
+
+
+
+
diff --git a/pycov/z_2a6b66cd9c831353___init___py.html b/pycov/z_2a6b66cd9c831353___init___py.html
new file mode 100644
index 00000000..4489e479
--- /dev/null
+++ b/pycov/z_2a6b66cd9c831353___init___py.html
@@ -0,0 +1,124 @@
+
+
+
+
+ Coverage for kpex/klayout/__init__.py: 100%
+
+
+
+
+
+
+
+ 1#
+ 2# --------------------------------------------------------------------------------
+ 3# SPDX-FileCopyrightText: 2024 Martin Jan Köhler and Harald Pretl
+ 4# Johannes Kepler University, Institute for Integrated Circuits.
+ 5#
+ 6# This file is part of KPEX
+ 7# (see https://github.com/martinjankoehler/klayout-pex).
+ 8#
+ 9# This program is free software: you can redistribute it and/or modify
+ 10# it under the terms of the GNU General Public License as published by
+ 11# the Free Software Foundation, either version 3 of the License, or
+ 12# (at your option) any later version.
+ 13#
+ 14# This program is distributed in the hope that it will be useful,
+ 15# but WITHOUT ANY WARRANTY; without even the implied warranty of
+ 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 17# GNU General Public License for more details.
+ 18#
+ 19# You should have received a copy of the GNU General Public License
+ 20# along with this program. If not, see <http://www.gnu.org/licenses/>.
+ 21# SPDX-License-Identifier: GPL-3.0-or-later
+ 22# --------------------------------------------------------------------------------
+ 23#
+ 24from .lvsdb_extractor import (
+ 25 KLayoutExtractedLayerInfo,
+ 26 KLayoutExtractionContext
+ 27)
+
+
+
+
diff --git a/pycov/z_2a6b66cd9c831353_lvs_runner_py.html b/pycov/z_2a6b66cd9c831353_lvs_runner_py.html
new file mode 100644
index 00000000..406e7656
--- /dev/null
+++ b/pycov/z_2a6b66cd9c831353_lvs_runner_py.html
@@ -0,0 +1,194 @@
+
+
+
+
+ Coverage for kpex/klayout/lvs_runner.py: 31%
+
+
+
+
+
+
+
+ 1#
+ 2# --------------------------------------------------------------------------------
+ 3# SPDX-FileCopyrightText: 2024 Martin Jan Köhler and Harald Pretl
+ 4# Johannes Kepler University, Institute for Integrated Circuits.
+ 5#
+ 6# This file is part of KPEX
+ 7# (see https://github.com/martinjankoehler/klayout-pex).
+ 8#
+ 9# This program is free software: you can redistribute it and/or modify
+ 10# it under the terms of the GNU General Public License as published by
+ 11# the Free Software Foundation, either version 3 of the License, or
+ 12# (at your option) any later version.
+ 13#
+ 14# This program is distributed in the hope that it will be useful,
+ 15# but WITHOUT ANY WARRANTY; without even the implied warranty of
+ 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 17# GNU General Public License for more details.
+ 18#
+ 19# You should have received a copy of the GNU General Public License
+ 20# along with this program. If not, see <http://www.gnu.org/licenses/>.
+ 21# SPDX-License-Identifier: GPL-3.0-or-later
+ 22# --------------------------------------------------------------------------------
+ 23#
+ 24from __future__ import annotations
+ 25
+ 26import os
+ 27import subprocess
+ 28import time
+ 29
+ 30from kpex.log import (
+ 31 debug,
+ 32 info,
+ 33 warning,
+ 34 error,
+ 35 subproc,
+ 36 rule
+ 37)
+ 38
+ 39
+ 40class LVSRunner:
+ 41 @staticmethod
+ 42 def run_klayout_lvs(exe_path: str,
+ 43 lvs_script: str,
+ 44 gds_path: str,
+ 45 schematic_path: str,
+ 46 log_path: str,
+ 47 lvsdb_path: str):
+ 48 args = [
+ 49 exe_path,
+ 50 '-b',
+ 51 '-r', lvs_script,
+ 52 '-rd', f"input={os.path.abspath(gds_path)}",
+ 53 '-rd', f"report={os.path.abspath(lvsdb_path)}",
+ 54 '-rd', f"schematic={os.path.abspath(schematic_path)}",
+ 55 '-rd', 'thr=22',
+ 56 '-rd', 'run_mode=deep',
+ 57 '-rd', 'spice_net_names=true',
+ 58 '-rd', 'spice_comments=false',
+ 59 '-rd', 'scale=false',
+ 60 '-rd', 'verbose=true',
+ 61 '-rd', 'schematic_simplify=false',
+ 62 '-rd', 'net_only=false',
+ 63 '-rd', 'top_lvl_pins=true',
+ 64 '-rd', 'combine=false',
+ 65 '-rd', 'combine_devices=false', # IHP
+ 66 '-rd', 'purge=false',
+ 67 '-rd', 'purge_nets=false',
+ 68 '-rd', 'no_simplify=true', # IHP
+ 69 ]
+ 70 info(f"Calling {' '.join(args)}, output file: {log_path}")
+ 71 rule()
+ 72 start = time.time()
+ 73
+ 74 proc = subprocess.Popen(args,
+ 75 stdin=subprocess.DEVNULL,
+ 76 stdout=subprocess.PIPE,
+ 77 stderr=subprocess.STDOUT,
+ 78 universal_newlines=True,
+ 79 text=True)
+ 80 with open(log_path, 'w') as f:
+ 81 while True:
+ 82 line = proc.stdout.readline()
+ 83 if not line:
+ 84 break
+ 85 subproc(line[:-1]) # remove newline
+ 86 f.writelines([line])
+ 87 proc.wait()
+ 88
+ 89 duration = time.time() - start
+ 90
+ 91 rule()
+ 92
+ 93 if proc.returncode == 0:
+ 94 info(f"klayout LVS succeeded after {'%.4g' % duration}s")
+ 95 else:
+ 96 warning(f"klayout LVS failed with status code {proc.returncode} after {'%.4g' % duration}s, "
+ 97 f"see log file: {log_path}")
+
+
+
+
diff --git a/pycov/z_2a6b66cd9c831353_lvsdb_extractor_py.html b/pycov/z_2a6b66cd9c831353_lvsdb_extractor_py.html
new file mode 100644
index 00000000..c6ab6a02
--- /dev/null
+++ b/pycov/z_2a6b66cd9c831353_lvsdb_extractor_py.html
@@ -0,0 +1,374 @@
+
+
+
+
+ Coverage for kpex/klayout/lvsdb_extractor.py: 67%
+
+
+
+
+
+
+
+ 1#
+ 2# --------------------------------------------------------------------------------
+ 3# SPDX-FileCopyrightText: 2024 Martin Jan Köhler and Harald Pretl
+ 4# Johannes Kepler University, Institute for Integrated Circuits.
+ 5#
+ 6# This file is part of KPEX
+ 7# (see https://github.com/martinjankoehler/klayout-pex).
+ 8#
+ 9# This program is free software: you can redistribute it and/or modify
+ 10# it under the terms of the GNU General Public License as published by
+ 11# the Free Software Foundation, either version 3 of the License, or
+ 12# (at your option) any later version.
+ 13#
+ 14# This program is distributed in the hope that it will be useful,
+ 15# but WITHOUT ANY WARRANTY; without even the implied warranty of
+ 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 17# GNU General Public License for more details.
+ 18#
+ 19# You should have received a copy of the GNU General Public License
+ 20# along with this program. If not, see <http://www.gnu.org/licenses/>.
+ 21# SPDX-License-Identifier: GPL-3.0-or-later
+ 22# --------------------------------------------------------------------------------
+ 23#
+ 24from __future__ import annotations
+ 25
+ 26import tempfile
+ 27from typing import *
+ 28from dataclasses import dataclass
+ 29from rich.pretty import pprint
+ 30
+ 31import klayout.db as kdb
+ 32
+ 33import tech_pb2
+ 34from ..log import (
+ 35 console,
+ 36 debug,
+ 37 info,
+ 38 warning,
+ 39 error,
+ 40 rule
+ 41)
+ 42
+ 43from ..tech_info import TechInfo
+ 44
+ 45
+ 46GDSPair = Tuple[int, int]
+ 47
+ 48
+ 49@dataclass
+ 50class KLayoutExtractedLayerInfo:
+ 51 index: int
+ 52 lvs_layer_name: str # NOTE: this can be computed, so gds_pair is preferred
+ 53 gds_pair: GDSPair
+ 54 region: kdb.Region
+ 55
+ 56
+ 57@dataclass
+ 58class KLayoutMergedExtractedLayerInfo:
+ 59 source_layers: List[KLayoutExtractedLayerInfo]
+ 60 gds_pair: GDSPair
+ 61
+ 62
+ 63@dataclass
+ 64class KLayoutExtractionContext:
+ 65 lvsdb: kdb.LayoutToNetlist
+ 66 dbu: float
+ 67 top_cell: kdb.Cell
+ 68 layer_map: Dict[int, kdb.LayerInfo]
+ 69 cell_mapping: kdb.CellMapping
+ 70 target_layout: kdb.Layout
+ 71 extracted_layers: Dict[GDSPair, KLayoutMergedExtractedLayerInfo]
+ 72 unnamed_layers: List[KLayoutExtractedLayerInfo]
+ 73
+ 74 @classmethod
+ 75 def prepare_extraction(cls,
+ 76 lvsdb: kdb.LayoutToNetlist,
+ 77 top_cell: str,
+ 78 tech: TechInfo,
+ 79 blackbox_devices: bool) -> KLayoutExtractionContext:
+ 80 dbu = lvsdb.internal_layout().dbu
+ 81 target_layout = kdb.Layout()
+ 82 target_layout.dbu = dbu
+ 83 top_cell = target_layout.create_cell(top_cell)
+ 84
+ 85 # CellMapping
+ 86 # mapping of internal layout to target layout for the circuit mapping
+ 87 # https://www.klayout.de/doc-qt5/code/class_CellMapping.html
+ 88 # ---
+ 89 # https://www.klayout.de/doc-qt5/code/class_LayoutToNetlist.html#method18
+ 90 # Creates a cell mapping for copying shapes from the internal layout to the given target layout
+ 91 cm = lvsdb.cell_mapping_into(target_layout, # target layout
+ 92 top_cell,
+ 93 not blackbox_devices) # with_device_cells
+ 94
+ 95 lm = cls.build_LVS_layer_map(target_layout=target_layout,
+ 96 lvsdb=lvsdb,
+ 97 tech=tech,
+ 98 blackbox_devices=blackbox_devices)
+ 99
+ 100 net_name_prop_num = 1
+ 101
+ 102 # Build a full hierarchical representation of the nets
+ 103 # https://www.klayout.de/doc-qt5/code/class_LayoutToNetlist.html#method14
+ 104 # hier_mode = None
+ 105 hier_mode = kdb.LayoutToNetlist.BuildNetHierarchyMode.BNH_Flatten
+ 106 # hier_mode = kdb.LayoutToNetlist.BuildNetHierarchyMode.BNH_SubcircuitCells
+ 107
+ 108 lvsdb.build_all_nets(
+ 109 cmap=cm, # mapping of internal layout to target layout for the circuit mapping
+ 110 target=target_layout, # target layout
+ 111 lmap=lm, # maps: target layer index => net regions
+ 112 hier_mode=hier_mode, # hier mode
+ 113 netname_prop=net_name_prop_num, # property name to which to attach the net name
+ 114 circuit_cell_name_prefix="CIRCUIT_",
+ 115 device_cell_name_prefix=None # "DEVICE_"
+ 116 )
+ 117
+ 118 extracted_layers, unnamed_layers = cls.nonempty_extracted_layers(lvsdb=lvsdb,
+ 119 tech=tech,
+ 120 blackbox_devices=blackbox_devices)
+ 121
+ 122 rule('Non-empty layers in LVS database:')
+ 123 for gds_pair, layer_info in extracted_layers.items():
+ 124 names = [l.lvs_layer_name for l in layer_info.source_layers]
+ 125 info(f"{gds_pair} -> ({' '.join(names)})")
+ 126
+ 127 return KLayoutExtractionContext(
+ 128 lvsdb=lvsdb,
+ 129 dbu=dbu,
+ 130 top_cell=top_cell,
+ 131 layer_map=lm,
+ 132 cell_mapping=cm,
+ 133 target_layout=target_layout,
+ 134 extracted_layers=extracted_layers,
+ 135 unnamed_layers=unnamed_layers
+ 136 )
+ 137
+ 138 @staticmethod
+ 139 def build_LVS_layer_map(target_layout: kdb.Layout,
+ 140 lvsdb: kdb.LayoutToNetlist,
+ 141 tech: TechInfo,
+ 142 blackbox_devices: bool) -> Dict[int, kdb.LayerInfo]:
+ 143 # NOTE: currently, the layer numbers are auto-assigned
+ 144 # by the sequence they occur in the LVS script, hence not well defined!
+ 145 # build a layer map for the layers that correspond to original ones.
+ 146
+ 147 # https://www.klayout.de/doc-qt5/code/class_LayerInfo.html
+ 148 lm: Dict[int, kdb.LayerInfo] = {}
+ 149
+ 150 if not hasattr(lvsdb, "layer_indexes"):
+ 151 raise Exception("Needs at least KLayout version 0.29.2")
+ 152
+ 153 for layer_index in lvsdb.layer_indexes():
+ 154 lname = lvsdb.layer_name(layer_index)
+ 155
+ 156 computed_layer_info = tech.computed_layer_info_by_name.get(lname, None)
+ 157 if computed_layer_info and blackbox_devices:
+ 158 match computed_layer_info.kind:
+ 159 case tech_pb2.ComputedLayerInfo.Kind.KIND_DEVICE_RESISTOR:
+ 160 continue
+ 161 case tech_pb2.ComputedLayerInfo.Kind.KIND_DEVICE_CAPACITOR:
+ 162 continue
+ 163
+ 164 gds_pair = tech.gds_pair_for_computed_layer_name.get(lname, None)
+ 165 if not gds_pair:
+ 166 li = lvsdb.internal_layout().get_info(layer_index)
+ 167 if li != kdb.LayerInfo():
+ 168 gds_pair = (li.layer, li.datatype)
+ 169
+ 170 if gds_pair is not None:
+ 171 target_layer_index = target_layout.layer(*gds_pair) # Creates a new internal layer!
+ 172 region = lvsdb.layer_by_index(layer_index)
+ 173 lm[target_layer_index] = region
+ 174
+ 175 return lm
+ 176
+ 177 @staticmethod
+ 178 def nonempty_extracted_layers(lvsdb: kdb.LayoutToNetlist,
+ 179 tech: TechInfo,
+ 180 blackbox_devices: bool) -> Tuple[Dict[GDSPair, KLayoutMergedExtractedLayerInfo], List[KLayoutExtractedLayerInfo]]:
+ 181 # https://www.klayout.de/doc-qt5/code/class_LayoutToNetlist.html#method18
+ 182 nonempty_layers: Dict[GDSPair, KLayoutMergedExtractedLayerInfo] = {}
+ 183
+ 184 unnamed_layers: List[KLayoutExtractedLayerInfo] = []
+ 185
+ 186 for idx, ln in enumerate(lvsdb.layer_names()):
+ 187 layer = lvsdb.layer_by_name(ln)
+ 188 if layer.count() >= 1:
+ 189 computed_layer_info = tech.computed_layer_info_by_name.get(ln, None)
+ 190 if not computed_layer_info:
+ 191 warning(f"Unable to find info about extracted LVS layer '{ln}'")
+ 192 gds_pair = (1000 + idx, 20)
+ 193 linfo = KLayoutExtractedLayerInfo(
+ 194 index=idx,
+ 195 lvs_layer_name=ln,
+ 196 gds_pair=gds_pair,
+ 197 region=layer
+ 198 )
+ 199 unnamed_layers.append(linfo)
+ 200 continue
+ 201
+ 202 if blackbox_devices:
+ 203 match computed_layer_info.kind:
+ 204 case tech_pb2.ComputedLayerInfo.Kind.KIND_DEVICE_RESISTOR:
+ 205 continue
+ 206 case tech_pb2.ComputedLayerInfo.Kind.KIND_DEVICE_CAPACITOR:
+ 207 continue
+ 208
+ 209 gds_pair = (computed_layer_info.layer_info.gds_layer, computed_layer_info.layer_info.gds_datatype)
+ 210
+ 211 linfo = KLayoutExtractedLayerInfo(
+ 212 index=idx,
+ 213 lvs_layer_name=ln,
+ 214 gds_pair=gds_pair,
+ 215 region=layer
+ 216 )
+ 217
+ 218 entry = nonempty_layers.get(gds_pair, None)
+ 219 if entry:
+ 220 entry.source_layers.append(linfo)
+ 221 else:
+ 222 nonempty_layers[gds_pair] = KLayoutMergedExtractedLayerInfo(
+ 223 source_layers=[linfo],
+ 224 gds_pair=gds_pair,
+ 225 )
+ 226
+ 227 return nonempty_layers, unnamed_layers
+ 228
+ 229 def top_cell_bbox(self) -> kdb.Box:
+ 230 b1: kdb.Box = self.target_layout.top_cell().bbox()
+ 231 b2: kdb.Box = self.lvsdb.internal_layout().top_cell().bbox()
+ 232 if b1.area() > b2.area():
+ 233 return b1
+ 234 else:
+ 235 return b2
+ 236
+ 237 def shapes_of_net(self, gds_pair: GDSPair, net: kdb.Net) -> Optional[kdb.Region]:
+ 238 lyr = self.extracted_layers.get(gds_pair, None)
+ 239 if not lyr:
+ 240 return None
+ 241
+ 242 shapes: kdb.Region
+ 243
+ 244 match len(lyr.source_layers):
+ 245 case 0:
+ 246 raise AssertionError('Internal error: Empty list of source_layers')
+ 247 case 1:
+ 248 shapes = self.lvsdb.shapes_of_net(net, lyr.source_layers[0].region, True)
+ 249 case _:
+ 250 shapes = kdb.Region()
+ 251 for sl in lyr.source_layers:
+ 252 shapes += self.lvsdb.shapes_of_net(net, sl.region, True)
+ 253 # shapes.merge()
+ 254
+ 255 return shapes
+ 256
+ 257 def shapes_of_layer(self, gds_pair: GDSPair) -> Optional[kdb.Region]:
+ 258 lyr = self.extracted_layers.get(gds_pair, None)
+ 259 if not lyr:
+ 260 return None
+ 261
+ 262 shapes: kdb.Region
+ 263
+ 264 match len(lyr.source_layers):
+ 265 case 0:
+ 266 raise AssertionError('Internal error: Empty list of source_layers')
+ 267 case 1:
+ 268 shapes = lyr.source_layers[0].region
+ 269 case _:
+ 270 shapes = kdb.Region()
+ 271 for sl in lyr.source_layers:
+ 272 shapes += sl.region
+ 273 # shapes.merge()
+ 274
+ 275 return shapes
+ 276
+ 277
+
+
+
+
diff --git a/pycov/z_2a6b66cd9c831353_netlist_csv_py.html b/pycov/z_2a6b66cd9c831353_netlist_csv_py.html
new file mode 100644
index 00000000..18411c41
--- /dev/null
+++ b/pycov/z_2a6b66cd9c831353_netlist_csv_py.html
@@ -0,0 +1,156 @@
+
+
+
+
+ Coverage for kpex/klayout/netlist_csv.py: 26%
+
+
+
+
+
+
+
+ 1#
+ 2# --------------------------------------------------------------------------------
+ 3# SPDX-FileCopyrightText: 2024 Martin Jan Köhler and Harald Pretl
+ 4# Johannes Kepler University, Institute for Integrated Circuits.
+ 5#
+ 6# This file is part of KPEX
+ 7# (see https://github.com/martinjankoehler/klayout-pex).
+ 8#
+ 9# This program is free software: you can redistribute it and/or modify
+ 10# it under the terms of the GNU General Public License as published by
+ 11# the Free Software Foundation, either version 3 of the License, or
+ 12# (at your option) any later version.
+ 13#
+ 14# This program is distributed in the hope that it will be useful,
+ 15# but WITHOUT ANY WARRANTY; without even the implied warranty of
+ 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 17# GNU General Public License for more details.
+ 18#
+ 19# You should have received a copy of the GNU General Public License
+ 20# along with this program. If not, see <http://www.gnu.org/licenses/>.
+ 21# SPDX-License-Identifier: GPL-3.0-or-later
+ 22# --------------------------------------------------------------------------------
+ 23#
+ 24from __future__ import annotations
+ 25
+ 26import klayout.db as kdb
+ 27
+ 28from kpex.log import (
+ 29 info,
+ 30)
+ 31
+ 32
+ 33class NetlistCSVWriter:
+ 34 @staticmethod
+ 35 def write_csv(netlist: kdb.Netlist,
+ 36 top_cell_name: str,
+ 37 output_path: str):
+ 38 with open(output_path, 'w') as f:
+ 39 f.write('Device;Net1;Net2;Capacitance [F];Capacitance [fF]\n')
+ 40
+ 41 top_circuit: kdb.Circuit = netlist.circuit_by_name(top_cell_name)
+ 42
+ 43 # NOTE: only caps for now
+ 44 for d in top_circuit.each_device():
+ 45 # https://www.klayout.de/doc-qt5/code/class_Device.html
+ 46 dc = d.device_class()
+ 47 if isinstance(dc, kdb.DeviceClassCapacitor):
+ 48 dn = d.expanded_name() or d.name
+ 49 if dc.name != 'PEX_CAP':
+ 50 info(f"Ignoring device {dn}")
+ 51 continue
+ 52 param_defs = dc.parameter_definitions()
+ 53 params = {p.name: d.parameter(p.id()) for p in param_defs}
+ 54 d: kdb.Device
+ 55 net1 = d.net_for_terminal('A')
+ 56 net2 = d.net_for_terminal('B')
+ 57 cap = params['C']
+ 58 cap_femto = round(cap * 1e15, 2)
+ 59 f.write(f"{dn};{net1.name};{net2.name};{'%.12g' % cap};{cap_femto}f\n")
+
+
+
+
diff --git a/pycov/z_2a6b66cd9c831353_netlist_expander_py.html b/pycov/z_2a6b66cd9c831353_netlist_expander_py.html
new file mode 100644
index 00000000..eaab6313
--- /dev/null
+++ b/pycov/z_2a6b66cd9c831353_netlist_expander_py.html
@@ -0,0 +1,245 @@
+
+
+
+
+ Coverage for kpex/klayout/netlist_expander.py: 97%
+
+
+
+
+
+
+
+ 1#
+ 2# --------------------------------------------------------------------------------
+ 3# SPDX-FileCopyrightText: 2024 Martin Jan Köhler and Harald Pretl
+ 4# Johannes Kepler University, Institute for Integrated Circuits.
+ 5#
+ 6# This file is part of KPEX
+ 7# (see https://github.com/martinjankoehler/klayout-pex).
+ 8#
+ 9# This program is free software: you can redistribute it and/or modify
+ 10# it under the terms of the GNU General Public License as published by
+ 11# the Free Software Foundation, either version 3 of the License, or
+ 12# (at your option) any later version.
+ 13#
+ 14# This program is distributed in the hope that it will be useful,
+ 15# but WITHOUT ANY WARRANTY; without even the implied warranty of
+ 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 17# GNU General Public License for more details.
+ 18#
+ 19# You should have received a copy of the GNU General Public License
+ 20# along with this program. If not, see <http://www.gnu.org/licenses/>.
+ 21# SPDX-License-Identifier: GPL-3.0-or-later
+ 22# --------------------------------------------------------------------------------
+ 23#
+ 24from __future__ import annotations
+ 25
+ 26import re
+ 27from typing import *
+ 28
+ 29import klayout.db as kdb
+ 30
+ 31from kpex.log import (
+ 32 info,
+ 33 warning,
+ 34)
+ 35from kpex.common.capacitance_matrix import CapacitanceMatrix
+ 36
+ 37
+ 38class NetlistExpander:
+ 39 @staticmethod
+ 40 def expand(extracted_netlist: kdb.Netlist,
+ 41 top_cell_name: str,
+ 42 cap_matrix: CapacitanceMatrix,
+ 43 blackbox_devices: bool) -> kdb.Netlist:
+ 44 expanded_netlist: kdb.Netlist = extracted_netlist.dup()
+ 45 top_circuit: kdb.Circuit = expanded_netlist.circuit_by_name(top_cell_name)
+ 46
+ 47 if not blackbox_devices:
+ 48 for d in top_circuit.each_device():
+ 49 name = d.name or d.expanded_name()
+ 50 info(f"Removing whiteboxed device {name}")
+ 51 top_circuit.remove_device(d)
+ 52
+ 53 # create capacitor class
+ 54 cap = kdb.DeviceClassCapacitor()
+ 55 cap.name = 'PEX_CAP'
+ 56 cap.description = "Extracted by kpex/FasterCap PEX"
+ 57 expanded_netlist.add(cap)
+ 58
+ 59 fc_gnd_net = top_circuit.create_net('FC_GND') # create GROUND net
+ 60 vsubs_net = top_circuit.create_net("VSUBS")
+ 61 nets: List[kdb.Net] = []
+ 62
+ 63 # build table: name -> net
+ 64 name2net: Dict[str, kdb.Net] = {n.expanded_name(): n for n in top_circuit.each_net()}
+ 65
+ 66 # find nets for the matrix axes
+ 67 pattern = re.compile(r'^g\d+_(.*)$')
+ 68 for idx, nn in enumerate(cap_matrix.conductor_names):
+ 69 m = pattern.match(nn)
+ 70 nn = m.group(1)
+ 71 if nn not in name2net:
+ 72 raise Exception(f"No net found with name {nn}, net names are: {list(name2net.keys())}")
+ 73 n = name2net[nn]
+ 74 nets.append(n)
+ 75
+ 76 cap_threshold = 0.0
+ 77
+ 78 def add_parasitic_cap(i: int,
+ 79 j: int,
+ 80 net1: kdb.Net,
+ 81 net2: kdb.Net,
+ 82 cap_value: float):
+ 83 if cap_value > cap_threshold:
+ 84 c: kdb.Device = top_circuit.create_device(cap, f"Cext_{i}_{j}")
+ 85 c.connect_terminal('A', net1)
+ 86 c.connect_terminal('B', net2)
+ 87 c.set_parameter('C', cap_value)
+ 88 if net1 == net2:
+ 89 raise Exception(f"Invalid attempt to create cap {c.name} between "
+ 90 f"same net {net1} with value {'%.12g' % cap_value}")
+ 91 else:
+ 92 warning(f"Ignoring capacitance matrix cell [{i},{j}], "
+ 93 f"{'%.12g' % cap_value} is below threshold {'%.12g' % cap_threshold}")
+ 94
+ 95 # -------------------------------------------------------------
+ 96 # Example capacitance matrix:
+ 97 # [C11+C12+C13 -C12 -C13]
+ 98 # [-C21 C21+C22+C23 -C23]
+ 99 # [-C31 -C32 C31+C32+C33]
+ 100 # -------------------------------------------------------------
+ 101 #
+ 102 # - Diagonal elements m[i][i] contain the capacitance over GND (Cii),
+ 103 # but in a sum including all the other values of the row
+ 104 #
+ 105 # https://www.fastfieldsolvers.com/Papers/The_Maxwell_Capacitance_Matrix_WP110301_R03.pdf
+ 106 #
+ 107 for i in range(0, cap_matrix.dimension):
+ 108 row = cap_matrix[i]
+ 109 cap_ii = row[i]
+ 110 for j in range(0, cap_matrix.dimension):
+ 111 if i == j:
+ 112 continue
+ 113 cap_value = -row[j] # off-diagonals are always stored as negative values
+ 114 cap_ii -= cap_value # subtract summands to filter out Cii
+ 115 if j > i:
+ 116 add_parasitic_cap(i=i, j=j,
+ 117 net1=nets[i], net2=nets[j],
+ 118 cap_value=cap_value)
+ 119 if i > 0:
+ 120 add_parasitic_cap(i=i, j=i,
+ 121 net1=nets[i], net2=nets[0],
+ 122 cap_value=cap_ii)
+ 123
+ 124 # Short VSUBS and FC_GND together
+ 125 # VSUBS ... substrate block
+ 126 # FC_GND ... FasterCap's GND, i.e. the diagonal Cii elements
+ 127 # create capacitor class
+ 128
+ 129 res = kdb.DeviceClassResistor()
+ 130 res.name = 'PEX_RES'
+ 131 res.description = "Extracted by kpex/FasterCap PEX"
+ 132 expanded_netlist.add(res)
+ 133
+ 134 gnd_net = name2net.get('GND', None)
+ 135 if not gnd_net:
+ 136 gnd_net = top_circuit.create_net('GND') # create GROUND net
+ 137
+ 138 c: kdb.Device = top_circuit.create_device(res, f"Rext_FC_GND_GND")
+ 139 c.connect_terminal('A', fc_gnd_net)
+ 140 c.connect_terminal('B', gnd_net)
+ 141 c.set_parameter('R', 0)
+ 142
+ 143 c: kdb.Device = top_circuit.create_device(res, f"Rext_VSUBS_GND")
+ 144 c.connect_terminal('A', vsubs_net)
+ 145 c.connect_terminal('B', gnd_net)
+ 146 c.set_parameter('R', 0)
+ 147
+ 148 return expanded_netlist
+
+
+
+
diff --git a/pycov/z_2a6b66cd9c831353_netlist_reducer_py.html b/pycov/z_2a6b66cd9c831353_netlist_reducer_py.html
new file mode 100644
index 00000000..3640db2c
--- /dev/null
+++ b/pycov/z_2a6b66cd9c831353_netlist_reducer_py.html
@@ -0,0 +1,164 @@
+
+
+
+
+ Coverage for kpex/klayout/netlist_reducer.py: 95%
+
+
+
+
+
+
+
+ 1#
+ 2# --------------------------------------------------------------------------------
+ 3# SPDX-FileCopyrightText: 2024 Martin Jan Köhler and Harald Pretl
+ 4# Johannes Kepler University, Institute for Integrated Circuits.
+ 5#
+ 6# This file is part of KPEX
+ 7# (see https://github.com/martinjankoehler/klayout-pex).
+ 8#
+ 9# This program is free software: you can redistribute it and/or modify
+ 10# it under the terms of the GNU General Public License as published by
+ 11# the Free Software Foundation, either version 3 of the License, or
+ 12# (at your option) any later version.
+ 13#
+ 14# This program is distributed in the hope that it will be useful,
+ 15# but WITHOUT ANY WARRANTY; without even the implied warranty of
+ 16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 17# GNU General Public License for more details.
+ 18#
+ 19# You should have received a copy of the GNU General Public License
+ 20# along with this program. If not, see <http://www.gnu.org/licenses/>.
+ 21# SPDX-License-Identifier: GPL-3.0-or-later
+ 22# --------------------------------------------------------------------------------
+ 23#
+ 24from typing import *
+ 25
+ 26import klayout.db as kdb
+ 27
+ 28from ..log import (
+ 29 info,
+ 30)
+ 31
+ 32
+ 33class NetlistReducer:
+ 34 @staticmethod
+ 35 def reduce(netlist: kdb.Netlist,
+ 36 top_cell_name: str,
+ 37 cap_threshold: float = 0.05e-15) -> kdb.Netlist:
+ 38 reduced_netlist: kdb.Netlist = netlist.dup()
+ 39 reduced_netlist.combine_devices() # merge C/R
+ 40
+ 41 top_circuit: kdb.Circuit = reduced_netlist.circuit_by_name(top_cell_name)
+ 42
+ 43 devices_to_remove: List[kdb.Device] = []
+ 44
+ 45 for d in top_circuit.each_device():
+ 46 d: kdb.Device
+ 47 dc = d.device_class()
+ 48 if isinstance(dc, kdb.DeviceClassCapacitor):
+ 49 # net_a = d.net_for_terminal('A')
+ 50 # net_b = d.net_for_terminal('B')
+ 51 c_value = d.parameter('C')
+ 52 if c_value < cap_threshold:
+ 53 devices_to_remove.append(d)
+ 54
+ 55 elif isinstance(dc, kdb.DeviceClassResistor):
+ 56 # TODO
+ 57 pass
+ 58
+ 59 for d in devices_to_remove:
+ 60 info(f"Removed device {d.name} {d.parameter('C')}")
+ 61 top_circuit.remove_device(d)
+ 62
+ 63 return reduced_netlist
+
+
+
+
+
+
+