Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -17,7 +17,7 @@ repos:
exclude: external/.*$

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v15.0.6
rev: v19.1.5
hooks:
- id: clang-format
exclude: external/.*$
Expand All @@ -30,6 +30,6 @@ repos:
# - id: cmake-lint

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 24.10.0
hooks:
- id: black
4 changes: 2 additions & 2 deletions src/TRestAxionOpticsMirror.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ Double_t TRestAxionOpticsMirror::GetReflectivity(const Double_t angle, const Dou
}

Int_t lowAngBin = (Int_t)((ang) / 0.01);
Double_t deltaAng = (ang - (Double_t)(lowAngBin)*0.01) / 0.01; // between 0 and 1
Double_t deltaAng = (ang - (Double_t)(lowAngBin) * 0.01) / 0.01; // between 0 and 1

Double_t REnLowAngLow = fReflectivityTable[lowEnBin][lowAngBin];
Double_t REnLowAngHi = fReflectivityTable[lowEnBin][lowAngBin + 1];
Expand Down Expand Up @@ -449,7 +449,7 @@ Double_t TRestAxionOpticsMirror::GetTransmission(const Double_t angle, const Dou
}

Int_t lowAngBin = (Int_t)((ang) / 0.01);
Double_t deltaAng = (ang - (Double_t)(lowAngBin)*0.01) / 0.01; // between 0 and 1
Double_t deltaAng = (ang - (Double_t)(lowAngBin) * 0.01) / 0.01; // between 0 and 1

Double_t REnLowAngLow = fTransmissionTable[lowEnBin][lowAngBin];
Double_t REnLowAngHi = fTransmissionTable[lowEnBin][lowAngBin + 1];
Expand Down
Loading