shelx
parse_shelx_file(filename)
Read a SHELX formatted .res file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
path to the shelx .res file to read |
required |
Returns:
| Type | Description |
|---|---|
|
dictionary of parsed shelx data |
parse_shelx_file_content(file_content)
Read a SHELX formatted crystal structure from a string
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_content
|
text contents of the SHELX .res file to read |
required |
Returns:
| Type | Description |
|---|---|
|
dictionary of parsed shelx data |
Source code in chmpy/fmt/shelx.py
to_res_contents(shelx_data)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shelx_data
|
dictionary of data to write into a SHELX .res format |
required |
Returns:
| Type | Description |
|---|---|
|
the string encoded contents of this shelx_data |