Skip to content

Commit

Permalink
Merge branch 'noise_workflow' of https://github.com/orcasound/orca-ac…
Browse files Browse the repository at this point in the history
…tion-workflow into noise_workflow
  • Loading branch information
valentina-s committed Mar 12, 2024
2 parents d8c5b28 + ea3b1d4 commit e7b4a03
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions .github/workflows/noise_processing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,14 @@ jobs:
# read -r timestamp<latest.txt
# echo "timestamp=$timestamp" >> $GITHUB_ENV

- name: Set hardcoded "full" timestamp
# 1618317018
# Tue Apr 13 2021 12:30:18 GMT+0000
run: |
echo "timestamp=1618317018" >> $GITHUB_ENV
- uses: actions/cache@v4
id: cache
with:
path: |
bush_point/${{ env.timestamp }}/
key: bush_point-${{ env.timestamp }}

- name: Get all files
- name: Create plots
if: steps.cache.outputs.cache-hit != 'true'
run: |
aws --no-sign-request s3 sync s3://streaming-orcasound-net/rpi_bush_point/hls/${{ env.timestamp }}/ bush_point/${{ env.timestamp }}
rm -rf bush_point/${{ env.timestamp }}/live2159.ts
- name: Create spectrograms
run: |
mkdir -p png/bush_point/${{ env.timestamp }}
python orcasound_processing.py bush_point/${{ env.timestamp }} -o png/bush_point/${{ env.timestamp }}
python noise_processing.py
- name: Upload spectrograms
- name: Upload plots
uses: actions/upload-artifact@v4
with:
name: Spectrograms
path: |
png/bush_point/${{ env.timestamp }}/*.png
broadband.png

0 comments on commit e7b4a03

Please sign in to comment.