Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reformat help headers
  • Loading branch information
Sparks29032 committed Jun 23, 2025
commit 2d4ada8552e7712179f03a17f9c39cb9c724021d
21 changes: 14 additions & 7 deletions src/diffpy/morph/morphapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,25 @@ def custom_error(self, msg):
"--smear",
type="float",
metavar="SMEAR",
help="""Smear the peaks with a Guassian of width SMEAR.
This is done by convolving the function with a Gaussian with standard
deviation SMEAR. If both --smear and --smear-pdf are enabled, only
--smear-pdf will be applied.""",
help=(
"Smear the peaks with a Gaussian of width SMEAR. "
"This is done by convolving the function with a "
"Gaussian with standard deviation SMEAR. "
"If both --smear and --smear-pdf are enabled, "
"only --smear-pdf will be applied."
),
)
group.add_option(
"--smear-pdf",
type="float",
metavar="SMEAR",
help="""Convert PDF to RDF. Then, smear peaks with a Gaussian of
width SMEAR. Convert back to PDF. If both --smear and --smear-pdf are
enabled, only --smear-pdf will be applied.""",
help=(
"Convert PDF to RDF. "
"Then, smear peaks with a Gaussian of width SMEAR. "
"Convert back to PDF. "
"If both --smear and --smear-pdf are enabled, "
"only --smear-pdf will be applied."
),
)
group.add_option(
"--slope",
Expand Down
3 changes: 3 additions & 0 deletions tests/test_morphio.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,6 @@ def ignore_path(line):
generated = filter(ignore_path, gf)
tf)
assert all(x == y for x, y in zip(generated, target))

def test_morphsmear(self, setup, tmp_path):
pass