Skip to content

Commit

Permalink
add build mask
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Oct 21, 2023
1 parent 8987344 commit f76b7a6
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 254 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build_mask.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# https://github.com/actions/upload-artifact
name: Build and upload mask with DRC

on:
pull_request:
push:

jobs:
test_mask:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 12
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
make install
- name: build mask
run: |
make mask
pip freeze > requirements.txt
cp requirements.txt build/
- uses: actions/upload-artifact@v3
with:
name: mask
path: build
46 changes: 0 additions & 46 deletions .github/workflows/pages.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/release-drafter.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/release.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/stale.yml

This file was deleted.

92 changes: 0 additions & 92 deletions .github/workflows/test_code_conda.yml

This file was deleted.

4 changes: 2 additions & 2 deletions ubc2/ubc_joaquin_matres1.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def test_mask4() -> Path:

def test_mask5() -> Path:
"""Ring resonators."""
rings = [pdk.ring_single_heater(length_x=length_x) for length_x in [4, 6]]
rings = [pdk.ring_double_heater(length_x=length_x) for length_x in [2]]
rings = [gf.functions.rotate180(ring) for ring in rings]
rings_gc = [pdk.add_fiber_array_pads_rf(ring) for ring in rings]

Expand Down Expand Up @@ -194,7 +194,7 @@ def test_mask7() -> Path:
# c = test_mask2() # spirals
# c = test_mask3() # coupler and crossing
# c = test_mask4() # heated mzis
# c = test_mask5() # heated rings
c = test_mask5() # heated rings
# c = test_mask6() # 1x2 mmis
# c = test_mask7() # 2x2mmis
gf.show(c)
Expand Down

0 comments on commit f76b7a6

Please sign in to comment.