From 68cd2735924fb14b172c7d8f627334921dbbae76 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 24 Jan 2024 10:58:51 +0100 Subject: [PATCH 1/7] first commit From fd1d910a04b567ae777fcaced2b95f8d733a6c4d Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 24 Jan 2024 12:59:17 +0100 Subject: [PATCH 2/7] Change Python versions used in the CI --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e41053d..94f6630 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.7, 3.8, 3.9] + python-version: [3.9 '3.10' '3.11'] steps: - name: Checkout most recent commit uses: actions/checkout@v3 From b89004f7e17601109d35b6b2dd53bab6a28dc1c4 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 24 Jan 2024 13:00:14 +0100 Subject: [PATCH 3/7] Add commas --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 94f6630..ce84f79 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.9 '3.10' '3.11'] + python-version: [3.9, '3.10', '3.11'] steps: - name: Checkout most recent commit uses: actions/checkout@v3 From 35cd6108f8db4a382e2f576c3f64ff7522faffe2 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 24 Jan 2024 13:08:03 +0100 Subject: [PATCH 4/7] Update changelog --- docs/source/changelog.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index 81e7b91..c82e227 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -1,6 +1,12 @@ Changelog ========= +Unreleased +---------- + +v0.2.2 +------ + v0.2.1 ------ Added From 092214a8e50b3ead2d05d2f07305ce3522e1f4ef Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 24 Jan 2024 13:16:32 +0100 Subject: [PATCH 5/7] Remove inplace operation --- deepdow/layers/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepdow/layers/misc.py b/deepdow/layers/misc.py index 1869363..3b4cd58 100644 --- a/deepdow/layers/misc.py +++ b/deepdow/layers/misc.py @@ -141,7 +141,7 @@ def compute_covariance(m, shrinkage_strategy=None, shrinkage_coef=0.5): """ fact = 1.0 / (m.size(1) - 1) - m -= torch.mean(m, dim=1, keepdim=True) # !!!!!!!!!!! INPLACE + m = m - torch.mean(m, dim=1, keepdim=True) mt = m.t() s = fact * m.matmul(mt) # sample covariance matrix From 28c807e49856bd9731b940822ea38f08cdb66eb4 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 24 Jan 2024 14:12:26 +0100 Subject: [PATCH 6/7] Don't test 3.9 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ce84f79..5016e13 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.9, '3.10', '3.11'] + python-version: ['3.10', '3.11'] steps: - name: Checkout most recent commit uses: actions/checkout@v3 From c2f1dde079eff678ff9dfe626c7e7f57352f9835 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 24 Jan 2024 16:22:40 +0100 Subject: [PATCH 7/7] Don't use this old bold markup in matplotlib --- examples/layers/warp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/layers/warp.py b/examples/layers/warp.py index 4c33940..6d1e77e 100644 --- a/examples/layers/warp.py +++ b/examples/layers/warp.py @@ -52,5 +52,5 @@ axs[i, 0].plot(tform.numpy().squeeze(), linewidth=3, color='red') axs[i, 1].plot(x_warped.numpy().squeeze(), linewidth=3, color='blue') - axs[i, 0].set_title(r'$\bf{}$ tform'.format(tform_name)) - axs[i, 1].set_title(r'$\bf{}$ warped'.format(tform_name)) + axs[i, 0].set_title('{} tform'.format(tform_name)) + axs[i, 1].set_title('{} warped'.format(tform_name))