Skip to content

Commit a7d829c

Browse files
authored
Merge branch 'master' into clean-precommit-fix
2 parents 37e8384 + e6c662a commit a7d829c

4 files changed

Lines changed: 29 additions & 5 deletions

File tree

.github/workflows/code-style-checks.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,18 @@ jobs:
4848
steps:
4949
- uses: actions/checkout@v6
5050

51+
- name: Get year & week number
52+
id: get-date
53+
run: |
54+
echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT
55+
5156
- uses: astral-sh/setup-uv@v7
5257
with:
5358
version: "latest"
5459
python-version: ${{ matrix.python-version }}
5560
activate-environment: true
5661
enable-cache: true
62+
cache-suffix: "${{ steps.get-date.outputs.date }}-style-${{ runner.os }}-${{ matrix.python-version }}"
5763
cache-dependency-glob: |
5864
**/requirements-dev.txt
5965
**/pyproject.toml

.github/workflows/docs.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,19 @@ jobs:
2626
python-version: ["3.10"]
2727
steps:
2828
- uses: actions/checkout@v6
29+
30+
- name: Get year & week number
31+
id: get-date
32+
run: |
33+
echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT
34+
2935
- uses: astral-sh/setup-uv@v7
3036
with:
3137
version: "latest"
3238
python-version: "${{ matrix.python-version }}"
3339
activate-environment: true
3440
enable-cache: true
35-
cache-suffix: "${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
41+
cache-suffix: "${{ steps.get-date.outputs.date }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
3642
cache-dependency-glob: |
3743
**/docs/requirements.txt
3844
**/requirements-dev.txt
@@ -67,13 +73,19 @@ jobs:
6773
python-version: ["3.10"]
6874
steps:
6975
- uses: actions/checkout@v6
76+
77+
- name: Get year & week number
78+
id: get-date
79+
run: |
80+
echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT
81+
7082
- uses: astral-sh/setup-uv@v7
7183
with:
7284
version: "latest"
7385
python-version: ${{ matrix.python-version }}
7486
activate-environment: true
7587
enable-cache: true
76-
cache-suffix: "${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
88+
cache-suffix: "${{ steps.get-date.outputs.date }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
7789
cache-dependency-glob: |
7890
**/docs/requirements.txt
7991
**/requirements-dev.txt
@@ -100,13 +112,19 @@ jobs:
100112
python-version: ["3.10"]
101113
steps:
102114
- uses: actions/checkout@v6
115+
116+
- name: Get year & week number
117+
id: get-date
118+
run: |
119+
echo "date=$(/bin/date "+%Y-%U")" >> $GITHUB_OUTPUT
120+
103121
- uses: astral-sh/setup-uv@v7
104122
with:
105123
version: "latest"
106124
python-version: "${{ matrix.python-version }}"
107125
activate-environment: true
108126
enable-cache: true
109-
cache-suffix: "${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
127+
cache-suffix: "${{ steps.get-date.outputs.date }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('docs/requirements.txt') }}"
110128
cache-dependency-glob: |
111129
**/docs/requirements.txt
112130
**/requirements-dev.txt

ignite/metrics/clustering/calinski_harabasz_score.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class CalinskiHarabaszScore(_ClusteringMetricBase):
8787
8888
.. testoutput::
8989
90-
5.733935832977295
90+
5.73393...
9191
9292
.. versionadded:: 0.5.2
9393
"""

ignite/metrics/gan/fid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def fid_score(
3737
diff = mu1 - mu2
3838

3939
# Product might be almost singular
40-
covmean, _ = scipy.linalg.sqrtm(sigma1.mm(sigma2).numpy(), disp=False)
40+
covmean = scipy.linalg.sqrtm(sigma1.mm(sigma2).numpy())
4141
# Numerical error might give slight imaginary component
4242
if np.iscomplexobj(covmean):
4343
if not np.allclose(np.diagonal(covmean).imag, 0, atol=1e-3):

0 commit comments

Comments
 (0)