From bbdbd3e69e31a179a321014a395b90c34871bd6f Mon Sep 17 00:00:00 2001 From: Landman Bester Date: Fri, 13 Dec 2024 16:49:18 +0200 Subject: [PATCH] Tmp (#128) * use specific sha * skip ci * versions skip ci --- .github/workflows/ci.yml | 10 +--------- pfb/operators/gridder.py | 2 -- pyproject.toml | 2 +- tbump.toml | 2 +- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e662b216..a2bb6465 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -176,16 +176,8 @@ jobs: - name: Build distributions run: poetry build - - name: Publish distribution to Test PyPI - uses: pypa/gh-action-pypi-publish/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_TEST_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - verbose: true - - name: Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish/v1 + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/pfb/operators/gridder.py b/pfb/operators/gridder.py index 5a82d9ea..de030a23 100644 --- a/pfb/operators/gridder.py +++ b/pfb/operators/gridder.py @@ -436,8 +436,6 @@ def image_data_products(dsl, meani = np.mean(ressq[mask>0]/ovar) stdi = np.std(ressq[mask>0]/ovar) print(f"Band {bandid} before: mean = {meani:.3e}, std = {stdi:.3e}") - # wgt_relative_one = (l2_reweight_dof + 1)/(l2_reweight_dof + ressq/ovar) - # wgt *= wgt_relative_one wgt *= (l2_reweight_dof + 1)/(l2_reweight_dof + ressq/ovar) else: wgt = None diff --git a/pyproject.toml b/pyproject.toml index 9e90c43f..c267f554 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pfb-imaging" -version = "0.0.5" +version = "0.0.4" description = "Radio interferometric imaging suite based on a preconditioned forward-backward approach" authors = ["Landman Bester "] license = "MIT" diff --git a/tbump.toml b/tbump.toml index 09e52ea3..3d4d8c5b 100644 --- a/tbump.toml +++ b/tbump.toml @@ -2,7 +2,7 @@ github_url = "https://github.com/ratt-ru/pfb-imaging/" [version] -current = "0.0.5" +current = "0.0.4" # Example of a semver regexp. # Make sure this matches current_version before