Skip to content

bug: structure not loading properly in new version of PDFgui #291

@sbillinge

Description

@sbillinge

Problem

this from Ben Frandsen

Hi all,

I noticed some unexpected behavior in PDFgui2 and wonder if it might be a bug. I was modeling some PDF data of cubic pyrochlore compounds and was getting horrible results in PDFgui2, even though I had previously generated nice fits using the old PDFgui. Looking closer, I found that PDFgui2 was expanding the unit cell incorrectly. As a simple example, consider cubic Ho2Ti2O7 (CIF attached; space group Fd-3m ). The asymmetric unit is:
loop_
_atom_site_label
_atom_site_type_symbol
_atom_site_symmetry_multiplicity
_atom_site_Wyckoff_symbol
_atom_site_fract_x
_atom_site_fract_y
_atom_site_fract_z
_atom_site_B_iso_or_equiv
_atom_site_occupancy
Ho1 Ho 16 d 0.5 0.5 0.5 0.5 1.
Ti1 Ti 16 c 0 0 0 0.5 1
O1 O 48 f 0.324(2) 0.125 0.125 0.5 1.
O2 O 8 b 0.375 0.375 0.375 0.5 1.

My installation of PDFgui2 (v. 2.0.4) generates a unit cell with 8 Ho atoms, 8 Ti atoms, 96 O1 atoms, and 32 8b atoms, which is obviously completely wrong. On the other hand, my old PDFgui (v. 1.1.2) gives me the 16 + 16 + 48 + 8 = 88 atoms expected.

I haven't used PDFgui2 enough to know if this is a widespread problem or some weird fluke with the Fd-3m space group. Has anyone encountered something like this?

Sorry to bring up this issue right now! I know there's a lot going on with the new diffpy release, so maybe this goes to the back burner for now, but I just wanted to mention it in case it had not yet been noticed.

Proposed solution

@Tieqiong this looks like something a bit bad. If you get a chance, could you take a look? Is it some change we have made in diffpy.structure? or utils? loaddata?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions