Skip to content

Commit

Permalink
Deploying to gh-pages from @ 4c787fd 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
qpavsmi committed Feb 16, 2024
1 parent 64df62d commit 2462c67
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 38 deletions.
73 changes: 59 additions & 14 deletions _modules/kqcircuits/masks/mask_layout.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions _modules/kqcircuits/masks/mask_set.html
Original file line number Diff line number Diff line change
Expand Up @@ -765,11 +765,12 @@ <h1>Source code for kqcircuits.masks.mask_set</h1><div class="highlight"><pre>

<span class="n">labels_cell</span> <span class="o">=</span> <span class="n">mask_layout</span><span class="o">.</span><span class="n">layout</span><span class="o">.</span><span class="n">create_cell</span><span class="p">(</span><span class="s2">&quot;ChipLabels&quot;</span><span class="p">)</span>
<span class="n">mask_layout</span><span class="o">.</span><span class="n">top_cell</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="n">pya</span><span class="o">.</span><span class="n">DCellInstArray</span><span class="p">(</span><span class="n">labels_cell</span><span class="o">.</span><span class="n">cell_index</span><span class="p">(),</span> <span class="n">pya</span><span class="o">.</span><span class="n">DTrans</span><span class="p">(</span><span class="n">pya</span><span class="o">.</span><span class="n">DVector</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">))))</span>

<span class="k">if</span> <span class="n">mask_layout</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">submask_layouts</span><span class="p">:</span>
<span class="n">mask_layout</span><span class="o">.</span><span class="n">insert_chip_copy_labels</span><span class="p">(</span><span class="n">labels_cell</span><span class="p">,</span> <span class="n">chip_copy_label_layers</span><span class="p">)</span>
<span class="n">chips_dict</span> <span class="o">=</span> <span class="n">mask_layout</span><span class="o">.</span><span class="n">insert_chip_copy_labels</span><span class="p">(</span><span class="n">labels_cell</span><span class="p">,</span> <span class="n">chip_copy_label_layers</span><span class="p">)</span>
<span class="n">mask_layout</span><span class="o">.</span><span class="n">overwrite_chips_by_position_label</span><span class="p">(</span><span class="n">chips_dict</span><span class="p">)</span>
<span class="c1"># remove &quot;$1&quot; or similar unnecessary postfix from cell name</span>
<span class="n">mask_layout</span><span class="o">.</span><span class="n">top_cell</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">mask_layout</span><span class="o">.</span><span class="n">name</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="n">mask_layout</span><span class="o">.</span><span class="n">insert_chips</span><span class="p">()</span>

<span class="c1"># populate used_chips with chips which exist in some mask_layout</span>
<span class="k">for</span> <span class="n">chip_name</span><span class="p">,</span> <span class="n">cell</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">chips_map_legend</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
Expand Down
4 changes: 2 additions & 2 deletions _modules/kqcircuits/simulations/simulation.html
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ <h1>Source code for kqcircuits.simulations.simulation</h1><div class="highlight"
<span class="kn">from</span> <span class="nn">kqcircuits.simulations.partition_region</span> <span class="kn">import</span> <span class="n">PartitionRegion</span>
<span class="kn">from</span> <span class="nn">kqcircuits.simulations.port</span> <span class="kn">import</span> <span class="n">Port</span><span class="p">,</span> <span class="n">InternalPort</span><span class="p">,</span> <span class="n">EdgePort</span>
<span class="kn">from</span> <span class="nn">kqcircuits.util.geometry_helper</span> <span class="kn">import</span> <span class="n">region_with_merged_polygons</span><span class="p">,</span> <span class="n">region_with_merged_points</span><span class="p">,</span> \
<span class="n">match_points_on_edges</span>
<span class="n">match_points_on_layers</span>
<span class="kn">from</span> <span class="nn">kqcircuits.util.parameters</span> <span class="kn">import</span> <span class="n">Param</span><span class="p">,</span> <span class="n">pdt</span><span class="p">,</span> <span class="n">add_parameters_from</span>
<span class="kn">from</span> <span class="nn">kqcircuits.simulations.export.util</span> <span class="kn">import</span> <span class="n">find_edge_from_point_in_cell</span>
<span class="kn">from</span> <span class="nn">kqcircuits.simulations.export.util</span> <span class="kn">import</span> <span class="n">get_enclosing_polygon</span>
Expand Down Expand Up @@ -1136,7 +1136,7 @@ <h1>Source code for kqcircuits.simulations.simulation</h1><div class="highlight"
<span class="n">material</span><span class="o">=</span><span class="s1">&#39;vacuum&#39;</span><span class="p">,</span> <span class="o">**</span><span class="p">({</span><span class="s1">&#39;subtract&#39;</span><span class="p">:</span> <span class="n">subtract</span><span class="p">}</span> <span class="k">if</span> <span class="n">subtract</span> <span class="k">else</span> <span class="nb">dict</span><span class="p">()))</span>

<span class="c1"># Eliminate gaps and overlaps caused by transformation to simple_polygon</span>
<span class="n">match_points_on_edges</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">cell</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">layout</span><span class="p">,</span> <span class="p">[</span><span class="n">get_simulation_layer_by_name</span><span class="p">(</span><span class="n">n</span><span class="p">)</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">layers</span><span class="p">])</span></div>
<span class="n">match_points_on_layers</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">cell</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">layout</span><span class="p">,</span> <span class="p">[</span><span class="n">get_simulation_layer_by_name</span><span class="p">(</span><span class="n">n</span><span class="p">)</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">layers</span><span class="p">])</span></div>

<div class="viewcode-block" id="Simulation.ground_grid_region"><a class="viewcode-back" href="../../../api/kqcircuits.simulations.simulation.html#kqcircuits.simulations.simulation.Simulation.ground_grid_region">[docs]</a> <span class="k">def</span> <span class="nf">ground_grid_region</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">face_id</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Returns region of ground grid for the given face id.&quot;&quot;&quot;</span>
Expand Down
Loading

0 comments on commit 2462c67

Please sign in to comment.