--
You received this message because you are subscribed to the Google Groups "diffpy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diffpy-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/diffpy-users/0e9ea7c4-47e5-454c-8d83-b4dcd259d97dn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/diffpy-users/CABuBjThx1TAU_C2Fw2tdjqw7pzRi%3DwBQQS-rAzA5H4xS78Yppw%40mail.gmail.com.
Hi Tomasz,
Thank you for your reply! Since I’m fairly new to Diffpy, I’m having some difficulty implementing your code into my fit recipe.
I’m also unsure whether your approach is specifically designed for crystal structures, as I’m working with discrete modeling using the DebyePDFGenerator.
Perhaps I could also simplify things, as my model only includes one type of atom (Silver).
Best regards,
Julian
To view this discussion visit https://groups.google.com/d/msgid/diffpy-users/65f946ce-50df-42db-aa6c-b9fe6b9e626an%40googlegroups.com.
Hi Tomasz,
Thank you so much for your help! I managed to implement it, though it’s probably not the most elegant or computationally efficient solution. Still, it gets the job done.
I might refine the code a bit further, but here’s my implementation in case it helps anyone facing a similar issue:
Best regards,
JulianTo view this discussion visit https://groups.google.com/d/msgid/diffpy-users/98057a93-2e71-49a0-a4a2-ca283bf48afen%40googlegroups.com.
Hi Tomasz,
Thank you for your feedback! Since I am working with discrete modeling (without a unit cell), the bond distance values are expressed in Angstroms.
I’ve also experimented with the sig parameter, and it indeed makes a noticeable difference—not only in the results but also in computation time in my case.
For most of my refinements, I rely on the least_squares method from scipy.optimize. Currently, it meets my needs, and everything seems to be working well. But, I’ll keep the minimize function in mind for future use.
Best
Julian