Skip to content

Commit cd93e8f

Browse files
committed
Updated test for speckle_noise_uncertainty for speedup
1 parent 8144ad3 commit cd93e8f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
# pre-commit run --files vip_hci/var/*.py
5050
- name: Test with pytest
5151
run: |
52-
pytest tests/pre_3_10 --cov=vip_hci/ --cov-report=xml --splits 3 --group ${{ matrix.group }}
52+
pytest tests/pre_3_10 --cov=vip_hci/ --cov-report=xml --splits 3 --group ${{ matrix.group }} --durations=50
5353
- name: Upload coverage to Codecov
5454
uses: codecov/codecov-action@v3
5555

@@ -85,6 +85,6 @@ jobs:
8585
# pre-commit run --files vip_hci/objects/*.py
8686
- name: Test with pytest
8787
run: |
88-
pytest tests/post_3_10 --cov=vip_hci/objects/ --cov-report=xml
88+
pytest tests/post_3_10 --cov=vip_hci/objects/ --cov-report=xml --durations=50
8989
- name: Upload coverage to Codecov
9090
uses: codecov/codecov-action@v3

tests/pre_3_10/test_fm_negfc_3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_algos(
122122
algo_options["radius_int"] = res0[0][0] - 2 * ds.fwhm
123123
algo_options["asize"] = 4 * ds.fwhm
124124
algo_options["delta_rot"] = 1
125-
if pca_algo == pca:
125+
if pca_algo == median_sub:
126126
# just test it once because very slow
127127
sp_unc = speckle_noise_uncertainty(
128128
cube_emp,

0 commit comments

Comments
 (0)