Skip to content

Commit d535e4a

Browse files
[pre-commit.ci] auto fixes from pre-commit hooks
1 parent ff368cf commit d535e4a

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/diffpy/morph/morphs/morphfuncy.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"""class MorphFuncy -- apply a user-supplied python function to the y-axis."""
1+
"""Class MorphFuncy -- apply a user-supplied python function to the
2+
y-axis."""
23

34
from diffpy.morph.morphs.morph import LABEL_GR, LABEL_RA, Morph
45

@@ -67,8 +68,8 @@ class MorphFuncy(Morph):
6768
parnames = ["function", "funcy"]
6869

6970
def morph(self, x_morph, y_morph, x_target, y_target):
70-
"""Apply the user-supplied Python function to the y-coordinates of the
71-
morph data"""
71+
"""Apply the user-supplied Python function to the y-coordinates
72+
of the morph data."""
7273
Morph.morph(self, x_morph, y_morph, x_target, y_target)
7374
self.y_morph_out = self.function(
7475
self.x_morph_in, self.y_morph_in, **self.funcy

src/diffpy/morph/morphs/morphsqueeze.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"""class MorphSqueeze -- Apply a polynomial to squeeze the morph function."""
1+
"""Class MorphSqueeze -- Apply a polynomial to squeeze the morph
2+
function."""
23

34
import numpy as np
45
from numpy.polynomial import Polynomial
@@ -67,8 +68,11 @@ class MorphSqueeze(Morph):
6768
extrap_index_high = None
6869

6970
def morph(self, x_morph, y_morph, x_target, y_target):
70-
"""Apply a polynomial to squeeze the morph function. The morphed
71-
data is returned on the same grid as the unmorphed data."""
71+
"""Apply a polynomial to squeeze the morph function.
72+
73+
The morphed data is returned on the same grid as the unmorphed
74+
data.
75+
"""
7276
Morph.morph(self, x_morph, y_morph, x_target, y_target)
7377

7478
coeffs = [self.squeeze[f"a{i}"] for i in range(len(self.squeeze))]

0 commit comments

Comments
 (0)