| Home | Trees | Index | Help |
|---|
| Module libcif |
|
| Classes | |
|---|---|
XMLWriter |
|
| Function Summary | |
|---|---|
Adds some text to the English report about the absolute configuration of the molecule | |
tries to find the contents of the asymetric cell | |
This function appends a table with label, y, y, z and U to the html file | |
| tupple |
Extract the atome name, position and U(eq) fropm the CIF. |
| dictionnary |
Returns a dictionnary with all the bond/valence angles between heavy atoms Datas have to be already in the CIF |
| dictionnary |
Returns a dictionnary with all the bond lengths between heavy atoms. |
calculate the cell volume and return it as a real (in ų) | |
check in the CIF data if all the data needed to generate a RST report are present. | |
check in the CIF data if all the data needed to generate a RST report are present. | |
| string |
Checks the symetry of a CIF file based on the symmetry operations |
converts a cif dictionnary to a string according to the CIF syntax | |
calculate the density in Mg/m³, for information : 10^30/Na/10^6=1.66054018667 | |
| string |
Substitute the english dots with french virgules |
encode(s,
encoding)
| |
encode_entity(text,
pattern)
| |
escape_attrib(s,
encoding,
replace)
| |
escape_cdata(s,
encoding,
replace)
| |
| boolean |
Check if the key exists in the CIF. |
| float |
Removes the () from the text and convert to a float |
return a HTML representatin of the chemical formula | |
This function appends a table element to the html file with the X and Y headers | |
| dictionnary |
Load the CIF file and returns the dictionnary |
This function generates the report in ENGLISH and add it to the HTML file | |
this function generates the report in FRENCH to the HTML file | |
| dictionnary |
Merge cif and acc and returns a completed CIF-object. |
| dictionnary |
Merge 2 cif objects : add from sg the missing values in kcd |
count the atoms and returns the molecular formula. | |
calculate the molecular weight of a compound using its formula | |
| tupple |
Processes one loop in the data extraction of the CIF file |
| dictionnary |
-Parses the text of a CIF file |
| dictionnary |
process the data throught PLATON |
| string |
-Check if the filename exists |
The CSD database has only room for 8 char to define the reference of the molecule. | |
transforms the CIF object in string and write it into the given file | |
| list |
Separate the text in fields as defined in the CIF |
| string |
Convert a string to a real, multiplies by the value and returns a string |
lauch PLATON and let the user chose the structural (or the ortep or powder) representation of the molecule | |
| string |
Lists all the symetricaly equivalent positions @param cif: CIF object of the Xtal structure |
This function writes out an X-Ray structure report as an HTML file in the given language with the data taken from the CIF dictionnary | |
This function appends a table summarizing the Xray analysis, usually in Annexe as table 1 | |
Calculate Z' = Z/nop if the latice is primitive zp=2*Z/nop if the latice is centered ... | |
| Function Details |
|---|
AbsStructEN(html, cif)Adds some text to the English report about the absolute configuration of the molecule
|
AsymetricCellContents(cif)tries to find the contents of the asymetric cell |
AtomicCoord(html, table)This function appends a table with label, y, y, z and U to the html file |
AtomPositions(cif)Extract the atome name, position and U(eq) fropm the CIF. Each table contents the atome label + x, y and z coordinate and the U(eq)
|
BondAngle(cif)Returns a dictionnary with all the bond/valence angles between heavy atoms Datas have to be already in the CIF
|
BondLength(cif)Returns a dictionnary with all the bond lengths between heavy atoms. Datas have to be already in the CIF
|
CellVol(cif)calculate the cell volume and return it as a real (in ų) |
ChechForCSD(cif, name='None')check in the CIF data if all the data needed to generate a RST report are present. If not it will ask many anoying questions |
ChechForRST(cif)check in the CIF data if all the data needed to generate a RST report are present. If not it will ask many anoying questions |
CheckSym(cif, fix=False)Checks the symetry of a CIF file based on the symmetry operations
|
cif2str(cif)converts a cif dictionnary to a string according to the CIF syntax
|
Density(cif)calculate the density in Mg/m³, for information : 10^30/Na/10^6=1.66054018667 |
dot2virg(text)Substitute the english dots with french virgules
|
exists(cif, key)Check if the key exists in the CIF.
|
floatp(txt)Removes the () from the text and convert to a float
|
formula2chem(txt)return a HTML representatin of the chemical formula |
Html2table(html, BL, X, Y)This function appends a table element to the html file with the X and Y headers |
LoadCIF(filename)Load the CIF file and returns the dictionnary
|
MainreportEN(html, cif)This function generates the report in ENGLISH and add it to the HTML file
|
MainreportFR(html, cif)this function generates the report in FRENCH to the HTML file |
mergeplaton(cif, acc)Merge cif and acc and returns a completed CIF-object. Special care is taken to select the most usefull data generated by platon
|
MergeSg(name, kcd, sg)Merge 2 cif objects : add from sg the missing values in kcd
|
MolForm(cif, zp)count the atoms and returns the molecular formula. Zp is the number of molecule per asymetric cell |
MolWeight(formula)calculate the molecular weight of a compound using its formula |
oneloop(fields, start)Processes one loop in the data extraction of the CIF file
|
parsecif(text)-Parses the text of a CIF file -Cut it in fields -Find all the loops and process -Find all the keys and values
|
platon(filename)process the data throught PLATON
|
readcif(filename)-Check if the filename exists -read the cif file -removes the comments
|
renamefile(infile, namelist)The CSD database has only room for 8 char to define the reference of the molecule. This function just tries to find a coherent name for the molecule in the database : it uses the 6 first numbers of the molecule name then "-" or a letter depending if the Xtal is a base or a salt (the letter corresponding to the number of the salt) The 8th position is for the polymorph or the data-acquisition. Afterwars it asks the user for the name, provinding a suggestion.
|
SaveCIF(cif, filename='test.cif')transforms the CIF object in string and write it into the given file |
splitcif(text)Separate the text in fields as defined in the CIF
|
stringmulti(text, value)Convert a string to a real, multiplies by the value and returns a string
|
structureImage(basename, structure='structure')lauch PLATON and let the user chose the structural (or the ortep or powder) representation of the molecule
|
symop(cif)Lists all the symetricaly equivalent positions @param cif: CIF object of the Xtal structure
|
WriteReport(filename, cif, Lang='En')This function writes out an X-Ray structure report as an HTML file in the given language with the data taken from the CIF dictionnary
|
XraySummary(html, cif)This function appends a table summarizing the Xray analysis, usually in Annexe as table 1
|
Zprime(cif)Calculate Z' = Z/nop if the latice is primitive zp=2*Z/nop if the latice is centered ... |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sun May 22 14:27:15 2005 | http://epydoc.sf.net |