Skip to content

Commit

Permalink
Add mypy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruruthia committed Sep 27, 2024
1 parent 74baf71 commit 91590ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ jobs:
- name: Test with pytest
run: |
docker run --rm cvdm-package:${{ matrix.python-version }} pytest
# Step 5: Run the container and execute tests using mypy
- name: Test with mypy
run: |
docker run --rm cvdm-package:${{ matrix.python-version }} mypy .
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ RUN micromamba create -n $ENV_NAME -y && \
/usr/local/bin/micromamba run -n $ENV_NAME pip3 install opencv-python==4.9.0.80 \
tensorflow-addons==0.23.0 \
cupy-cuda12x==13.3.0 \
mypy \
pytest && \
/usr/local/bin/micromamba run -n $ENV_NAME python -m pip install .

Expand Down
1 change: 1 addition & 0 deletions cvdm/utils/inference_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def create_output_montage(
(pred_y, y, gamma_vec),
axis=2,
)
print(concatenated_images.shape)
image: np.ndarray = montage(
np.squeeze(concatenated_images),
channel_axis=channel_axis,
Expand Down

0 comments on commit 91590ed

Please sign in to comment.