Skip to content

Commit 2d4ada8

Browse files
committed
Reformat help headers
1 parent 215c5e5 commit 2d4ada8

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

src/diffpy/morph/morphapp.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,18 +167,25 @@ def custom_error(self, msg):
167167
"--smear",
168168
type="float",
169169
metavar="SMEAR",
170-
help="""Smear the peaks with a Guassian of width SMEAR.
171-
This is done by convolving the function with a Gaussian with standard
172-
deviation SMEAR. If both --smear and --smear-pdf are enabled, only
173-
--smear-pdf will be applied.""",
170+
help=(
171+
"Smear the peaks with a Gaussian of width SMEAR. "
172+
"This is done by convolving the function with a "
173+
"Gaussian with standard deviation SMEAR. "
174+
"If both --smear and --smear-pdf are enabled, "
175+
"only --smear-pdf will be applied."
176+
),
174177
)
175178
group.add_option(
176179
"--smear-pdf",
177180
type="float",
178181
metavar="SMEAR",
179-
help="""Convert PDF to RDF. Then, smear peaks with a Gaussian of
180-
width SMEAR. Convert back to PDF. If both --smear and --smear-pdf are
181-
enabled, only --smear-pdf will be applied.""",
182+
help=(
183+
"Convert PDF to RDF. "
184+
"Then, smear peaks with a Gaussian of width SMEAR. "
185+
"Convert back to PDF. "
186+
"If both --smear and --smear-pdf are enabled, "
187+
"only --smear-pdf will be applied."
188+
),
182189
)
183190
group.add_option(
184191
"--slope",

tests/test_morphio.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,6 @@ def ignore_path(line):
137137
generated = filter(ignore_path, gf)
138138
target = filter(ignore_path, tf)
139139
assert all(x == y for x, y in zip(generated, target))
140+
141+
def test_morphsmear(self, setup, tmp_path):
142+
pass

0 commit comments

Comments
 (0)