Skip to content

Commit

Permalink
Merge pull request #40 from TCDSolar/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
samaloney authored Jan 23, 2025
2 parents 71fa218 + 22851a3 commit 065f875
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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"]
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions chimerapy/chimera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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=====

Expand Down
2 changes: 1 addition & 1 deletion chimerapy/tests/test_chimera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion chimerapy/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 065f875

Please sign in to comment.