Hello,
There is a function called Crystal.fromCIF which can directly create a
crystal object corresponding to the default entry in the CIF file.
This is the most straightforward way. The source of that function (3 lines)
can also inspire you to do it manually from a CIFFile object.
https://xrayutilities.sourceforge.io/xrayutilities.materials.html#xrayutilities.materials.material.Crystal.fromCIF
Cheers
Dominik
On Mon, Feb 17, 2025 at 3:11 PM Kusch, Maximilian <
max...@he...> wrote:
> Dear all,
>
>
> What is in the current version of xrayutilities the easiest way to create
> a xrayutilities.materials.material.Crystal
>
> out of a xrayutilities.materials.cif.CIFFile, which only has the methods
> Parse() and SGLattice()
>
>
> thank you very much for your help
>
> Maximilian Kusch
>
> ------------------------------
>
> Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
>
> Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher
> Forschungszentren e.V.
>
> Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta
> Koch-Unterseher
> Geschäftsführung: Prof. Dr. Bernd Rech, Thomas Frederking
>
> Sitz Berlin, AG Charlottenburg, 89 HRB 5583
>
> Postadresse:
> Hahn-Meitner-Platz 1
> 14109 Berlin
> Deutschland
>
> Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen
> enthalten. Wenn Sie diese E-Mail irrtümlich erhalten haben, informieren Sie
> bitte sofort den*die Absender*in und vernichten Sie diese Mail. Das
> unerlaubte Kopieren, die Veröffentlichung sowie die unbefugte Weitergabe
> dieser Mail ist nicht gestattet.
> This email may contain confidential and/or proprietary information. If you
> have received this e-mail in error, please inform the sender immediately
> and destroy this e-mail. Unauthorized copying, publishing or distribution
> of this e-mail is not permitted.
> _______________________________________________
> xrayutilities-users mailing list
> xra...@li...
> https://lists.sourceforge.net/lists/listinfo/xrayutilities-users
>
|