Skip to content

Commit

Permalink
Merge pull request #50 from legend-exp/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
chore: update pre-commit hooks
  • Loading branch information
gipert committed Feb 7, 2024
2 parents 8d9db3e + 7ea25d9 commit 9663df8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repos:
args: ["--py36-plus"]

- repo: https://github.com/psf/black
rev: "23.12.1"
rev: "24.1.1"
hooks:
- id: black

Expand All @@ -58,7 +58,7 @@ repos:
args: ["--all"]

- repo: https://github.com/PyCQA/flake8
rev: "6.1.0"
rev: "7.0.0"
hooks:
- id: flake8
additional_dependencies: [
Expand All @@ -70,7 +70,7 @@ repos:
args: ["--docstring-convention", "numpy"] # or google, change me

- repo: https://github.com/kynan/nbstripout
rev: "0.6.1"
rev: "0.7.1"
hooks:
- id: nbstripout
args: ["--strip-empty-cells",
Expand Down
1 change: 1 addition & 0 deletions src/legendoptics/fibers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.. [SaintGobainDataSheet] https://www.crystals.saint-gobain.com/sites/hps-mac3-cma-crystals/files/2021-11/Fiber-Product-Sheet.pdf
"""

from __future__ import annotations

import logging
Expand Down
6 changes: 2 additions & 4 deletions src/legendoptics/lar.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from liquid argon and xenon.” In: Phys. Rev. B 27 (9 May 1983), pp. 5279–5285,
https://doi.org/10.1103/PhysRevB.27.5279
"""

from __future__ import annotations

import logging
Expand Down Expand Up @@ -96,10 +97,7 @@ def lar_dielectric_constant_cern2020(
f"this parametrization holds only between {λ_uv+1*u.nm} and {λ_ir-1*u.nm}"
)

x = 0.334 + (
(0.100 * λ**2) / (λ**2 - λ_uv**2)
+ (0.008 * λ**2) / (λ**2 - λ_ir**2)
)
x = 0.334 + ((0.100 * λ**2) / (λ**2 - λ_uv**2) + (0.008 * λ**2) / (λ**2 - λ_ir**2))

# solve Clausius-Mossotti
return (3 + 2 * x) / (3 - x)
Expand Down
1 change: 1 addition & 0 deletions src/legendoptics/pen.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
.. [Ouchi2006] I. Ouchi et al. “Features of Fluorescence Spectra of Polyethylene 2,6-Naphthalate Films”
In: Journal of Applied Polymer Science, Vol. 105, 114–121 (2007), https://doi.org/10.1002/app.26085
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/legendoptics/tetratex.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.. [Janacek2012] M. Janacek, "Reflectivity spectra for commonly used reflectors", https://www.osti.gov/servlets/purl/1184400
"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions tests/test_pyg4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the attaching of all properties to Geant4 materials."""

import pint
import pyg4ometry.geant4 as g4

Expand Down

0 comments on commit 9663df8

Please sign in to comment.