diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3255b3e..4d7b840 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: # This should be before any formatting hooks like isort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.6.1" + rev: "v0.9.2" hooks: - id: ruff args: ["--fix"] @@ -13,7 +13,7 @@ repos: - id: isort exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*)$" - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-ast - id: check-case-conflict diff --git a/chimerapy/chimera.py b/chimerapy/chimera.py index d954a48..04f962f 100644 --- a/chimerapy/chimera.py +++ b/chimerapy/chimera.py @@ -449,7 +449,7 @@ def chimera(im171, im193, im211, imhmi): props[11, ident + 1] = str(np.round(Ysb)) props[12, ident + 1] = str(eastl + "-" + westl) props[13, ident + 1] = str(width) - props[14, ident + 1] = f"{trummar / 1e+12:.1e}" + props[14, ident + 1] = f"{trummar / 1e12:.1e}" props[15, ident + 1] = str(np.round((arcar * 100 / (np.pi * (rs**2))), 1)) props[16, ident + 1] = str(np.round(mB, 1)) props[17, ident + 1] = str(np.round(mBpos, 1)) @@ -460,9 +460,9 @@ def chimera(im171, im193, im211, imhmi): props[21, ident + 1] = f"{tbpos:.1e}" tbneg = np.sum(datm[pos[:, 0], pos[:, 1]][np.where(datm[pos[:, 0], pos[:, 1]] < 0)]) props[22, ident + 1] = f"{tbneg:.1e}" - props[23, ident + 1] = f"{mB * trummar * 1e+16:.1e}" - props[24, ident + 1] = f"{mBpos * trummar * 1e+16:.1e}" - props[25, ident + 1] = f"{mBneg * trummar * 1e+16:.1e}" + props[23, ident + 1] = f"{mB * trummar * 1e16:.1e}" + props[24, ident + 1] = f"{mBpos * trummar * 1e16:.1e}" + props[25, ident + 1] = f"{mBneg * trummar * 1e16:.1e}" # =====sets up code for next possible coronal hole===== diff --git a/chimerapy/tests/test_chimera.py b/chimerapy/tests/test_chimera.py index e08da98..4d3053e 100644 --- a/chimerapy/tests/test_chimera.py +++ b/chimerapy/tests/test_chimera.py @@ -14,7 +14,7 @@ def test_chimera(tmp_path): - Downloader.simple_download(INPUT_FILES.values(), path=tmp_path) + _ = Downloader.simple_download(INPUT_FILES.values(), path=tmp_path) os.chdir(tmp_path) chimera_legacy() diff --git a/chimerapy/version.py b/chimerapy/version.py index 90d4111..f30630a 100644 --- a/chimerapy/version.py +++ b/chimerapy/version.py @@ -10,7 +10,7 @@ import warnings warnings.warn( - f'could not determine {__name__.split(".")[0]} package version; this indicates a broken installation' + f"could not determine {__name__.split('.')[0]} package version; this indicates a broken installation" ) del warnings