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/use-string-in-structure
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* No news added: Use filename string instead of pathlib.Path to fix the test using ``diffpy.structure``.

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
7 changes: 5 additions & 2 deletions tests/test_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ def testGenerator(

stru = PDFFitStructure()
ciffile = datafile("ni.cif")
stru.read(ciffile)
cif_path = str(ciffile)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed to cif_path

stru.read(cif_path)
for i in range(4):
stru[i].Bisoequiv = 1
gen.setStructure(stru)
Expand Down Expand Up @@ -298,7 +299,9 @@ def test_pickling(

pc = PDFContribution("pdf")
pc.loadData(datafile("ni-q27r100-neutron.gr"))
ni = loadStructure(datafile("ni.cif"))
ciffile = datafile("ni.cif")
cif_path = str(ciffile)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed to cif_path

ni = loadStructure(cif_path)
ni.Uisoequiv = 0.003
pc.addStructure("ni", ni)
pc.setCalculationRange(0, 10)
Expand Down
Loading