Skip to content

Commit

Permalink
This my design (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc authored Jul 14, 2024
2 parents 22a4dfe + 3d6a1b9 commit cfeecbb
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/run-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ jobs:
with:
fetch-depth: 0


- name: get changed files
uses: jitterbit/get-changed-files@v1
run: |
for changed_file in ${{ steps.files.outputs.all }}; do
echo "Do something with this ${changed_file}."
done
- name: write what triggered this workflow to a txt file
run: |
echo "${{ github.event_name }}" > trigger_info.txt
Expand Down Expand Up @@ -68,10 +77,13 @@ jobs:
else
if [[ "${{ github.event_name }}" == "pull_request" || "${{ github.event_name }}" == "pull_request_target" ]]; then
# triggered on pull request, get all changed / added files from forked repo
FILES=$(git diff --name-only --diff-filter=ACM FETCH_HEAD | grep -i -E '\.(gds|oas)$' | sed 's|^submissions/||')
FILES=$(git diff --name-only --diff-filter=ACM $BASE_BRANCH...$PR_BRANCH | grep -i -E '\.(gds|oas)$' | sed 's|^submissions/||')
#FILES=$(git diff --name-only --diff-filter=ACM origin/$BASE_BRANCH...origin/$PR_BRANCH | grep -i -E '\.(gds|oas)$' | sed 's|^submissions/||')
#FILES=$(git diff --name-only --diff-filter=ACM FETCH_HEAD | grep -i -E '\.(gds|oas)$' | sed 's|^submissions/||')
else
# triggered push, locate the changed / added .gds and .oas files in the submission folder
FILES=$(git diff --name-status --diff-filter=ACM --relative=submissions ${{ github.event.before }} ${{ github.sha }} submissions | grep -i -E '\.(gds|oas)$' | awk '{print $2}')
FILES=$(git diff --name-only --diff-filter=ACM --relative=submissions $BASE_BRANCH...$PR_BRANCH submissions | grep -i -E '\.(gds|oas)$' | awk '{print $2}')
#FILES=$(git diff --name-status --diff-filter=ACM --relative=submissions ${{ github.event.before }} ${{ github.sha }} submissions | grep -i -E '\.(gds|oas)$' | awk '{print $2}')
fi
fi
Expand Down Expand Up @@ -230,3 +242,4 @@ jobs:
echo "files_with_errors=$files_with_errors" >> $GITHUB_ENV
# Don't run:
if: github.repository == 'octo-org/octo-repo-prod'

Binary file not shown.
44 changes: 44 additions & 0 deletions submissions/Ebeam_heaters_prakashdas_02_Decoder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Devices:
prakashdas_02_Decoder:
device_id: prakashdas_02_Decoder
device_type: Device
electricalCoordinates:
- G
- 399.0
- 424.0
opticalCoordinates:
- 52.0
- 290.0
polarization: TE
sequences:
- (wavelength_sweep_ida)
wavelength: '1550'
Sequences:
(wavelength_sweep_ida):
Runtime: 25.0
results_info:
csv: 'True'
foldername: ''
legend: 'True'
mat: 'True'
num_plots: '1'
pdf: 'True'
pkl: 'False'
plottitle: WavelengthSweep
save_location: ''
saveplot: 'True'
visual: 'True'
xscale: '1'
xtitle: Wavelength (nm)
yscale: '1'
ytitle: Power (dBm)
variables:
Initialrange: '-20'
Laser Output: High Power
Numscans: '1'
Power: '1'
RangeDec: '20'
Start: '1480'
Step: '1'
Stop: '1580'
Sweep Speed: auto

0 comments on commit cfeecbb

Please sign in to comment.