Skip to content

Commit

Permalink
Removing isort, and adding actions to lint and ensure clean notebooks.
Browse files Browse the repository at this point in the history
Fixing danging linting issue in the tutorial notebook, so I expect the workflow to pass.
  • Loading branch information
mrl280 committed Apr 25, 2024
1 parent b036dc7 commit 104e916
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
with:
python-version: "3.10"

- name: isort Import Sorting Check
uses: isort/isort-action@master

- name: Back Formatting Check
uses: psf/black@stable
with:
Expand All @@ -36,3 +33,15 @@ jobs:

- name: Lint with Flake8
uses: py-actions/flake8@v2

- name: Install Flake8 for Jupyter Notebooks
run: |
pip install --upgrade pip
pip install flake8-nb
- name: Run Flake8 for Jupyter Notebooks
run: |
flake8-nb .
- name: Ensure Clean Notebooks
uses: ResearchSoftwareActions/[email protected]
1 change: 1 addition & 0 deletions spectrogram_segmentation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@
"outputs": [],
"source": [
"# Grab the first NR_LTE signal\n",
"PATH_TO_MATLAB5G_TRAINING_DATA = os.getcwd()\n",
"spec_path = os.path.join(PATH_TO_MATLAB5G_TRAINING_DATA, \"LTE_NR\", \"LTE_NR_frame_0.png\")\n",
"spectrogram = read_image(spec_path) # Image has both NR and LTE signal\n",
"spectrogram = spectrogram.to(device)\n",
Expand Down

0 comments on commit 104e916

Please sign in to comment.