Skip to main content

Prepare ice modules for GenIce from CIF file

Project description

A small utility to prepare a new ice structure from a CIF file.

The source can be

  1. A .cif file.

  2. An URL to a .cif file.

  3. The three-letter code of Zeolites.

Installation

Use pip of Python2. (Cif2ice uses pycifrw that is provided only for Python2)

pip install cif2ice

Usage

usage: cif2ice [-h] [--rep REP REP REP] [--debug] [--quiet] [--force] name

positional arguments:
  name                  CIF file, Zeolite name, or URL

optional arguments:
  -h, --help            show this help message and exit
  --rep REP REP REP, -r REP REP REP
                        Repeat the unit cell in x,y, and z directions. [1,1,1]
  --debug, -D           Output debugging info.
  --quiet, -q           Do not output progress messages.
  --force, -f           Force overwrite.

Example

In any case, the generated python module will be stored in the private folder for GenIce (.genice/lattices or Library/Application Support/GenIce):

  1. To obtain a Zeolite RHO structure from the Zeolite DB

    cif2ice MTN
  2. To generate a python module from the foo.cif file:

    cif2ice ./MTN.cif
  3. To make the python module from a remote .cif file:

    cif2ice http://somewhere/MTN.cif

The structure is accessible from GenIce:

genice MTN > MTN.gro

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cif2ice-0.1.6.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

cif2ice-0.1.6-py2.py3-none-any.whl (16.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cif2ice-0.1.6.tar.gz.

File metadata

  • Download URL: cif2ice-0.1.6.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cif2ice-0.1.6.tar.gz
Algorithm Hash digest
SHA256 b9b96422cf163adc2195890a1de52b71a2a496f8fbabe43525f21b4d6f721c42
MD5 7063d7b8e790566005d63a1b2b9f8b80
BLAKE2b-256 9134fe7801a190d0c5588ac82b1d0dbae5d679e17e0481ba5035215a5160a6b3

See more details on using hashes here.

File details

Details for the file cif2ice-0.1.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cif2ice-0.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3e7112cdf5df5e0dec889a121297950cdcf9d8aebb3e53f92f1a36aa4a34126c
MD5 214a37e261f0cff8e3cb9cccf2dab74f
BLAKE2b-256 8d63e0922d7a0a6db034b2472a6b1c72fbb1aea6d4eeeb22401c0aed79b378ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page