Skip to content

Commit

Permalink
Merge pull request #5 from wright-group/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
kameyer226 authored Jun 4, 2024
2 parents 45ecad7 + 097f9d1 commit bd89292
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/psf/black
rev: 22.3.0 # Replace by any tag/version: https://github.com/psf/black/tags
rev: 24.4.2 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
args: ["--line-length", "99"]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: datasets|.data$
Expand Down
3 changes: 2 additions & 1 deletion phasematching_calc/_lasers.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def calculate_cartesian_angles(self):
def calculate_masks(self):
"""Based on the supported geometry list, generate a 0,1 binary type array of x and ys. If 0, that element is
not to be used in related phasematching calculations. Binary values are based on whether the inputs
need that coordinate specified. For example, on boxcars, input 2 would have a binary 0 for x and binary 1 for y."""
need that coordinate specified. For example, on boxcars, input 2 would have a binary 0 for x and binary 1 for y.
"""
geom = self.geometry
if geom == "boxcars":
self.xmask = [1, 0, 0, 1]
Expand Down
3 changes: 2 additions & 1 deletion phasematching_calc/phasematch.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ def _calculate_internals(Iso, Las, zerofreq=False, zerofreqnum=1):

def _guess_output_pol(polsvec):
"""Guesses output polarization based on isotropic averaging, given the input polarizations and that they are linear and
aligned with either x or y but not a factor of both. Returns a 1 or 0...1 means vertical, 0 means horizontal."""
aligned with either x or y but not a factor of both. Returns a 1 or 0...1 means vertical, 0 means horizontal.
"""
temppolsvec = np.zeros(len(polsvec))
for i in range(len(polsvec)):
if polsvec[i] != 1:
Expand Down

0 comments on commit bd89292

Please sign in to comment.