Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 18, 2024
1 parent 8cf9bb4 commit 996a328
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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 996a328

Please sign in to comment.