Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
23 changes: 23 additions & 0 deletions news/smear_pdf_bug.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* When transforming from the RDF to PDF in the smear-pdf morph, we incorrectly referenced the target grid zero point, when we should be referencing the morph grid zero point. This would lead to the morph PDF being set to zero on a point corresponding to when the target PDF grid value is zero. The correct behavior is for the morph PDF to be set to zero when the morph PDF grid value is zero. This has been fixed.

**Security:**

* <news item>
2 changes: 1 addition & 1 deletion src/diffpy/morph/morph_helpers/transformrdftopdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def morph(self, x_morph, y_morph, x_target, y_target):
self.y_morph_out = (
self.y_morph_in / self.x_morph_in + morph_baseline
)
self.y_morph_out[self.x_target_in == 0] = 0
self.y_morph_out[self.x_morph_in == 0] = 0
return self.xyallout


Expand Down
Loading