Skip to main content

Prepare ice modules for GenIce from CIF file

Project description

cif2ice

Version 0.4.1

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

(Note: this is not necessary for GenIce3 since the CIF loader is implemented.)

The source can be

  1. A .cif file.
  2. An URL to a .cif file.
  3. The three-letter code of Zeolites.

Installation

pip install cif2ice

Usage

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

positional arguments:
  name                  CIF file, Zeolite 3-letter code, or URL

options:
  -h, --help            show this help message and exit
  --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

  1. (To obtain a Zeolite RHO structure from the Zeolite DB) It is no longer supported because the URLs at Zeolite DB has been changed. Please download the CIF file by hand and follow the next instruction. Sorry for inconvenience.

    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
    

To use the module with GenIce, make a folder named lattices/ in the current working directory and put MTN.py there.

genice2 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.4.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cif2ice-0.4.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cif2ice-0.4.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.11 Darwin/24.5.0

File hashes

Hashes for cif2ice-0.4.1.tar.gz
Algorithm Hash digest
SHA256 ad70c0239eb391c4d367c48d5706d95138bdf930337179acbc98eb38dbe87883
MD5 d2083e80f5c423535065effeb28a7ab2
BLAKE2b-256 eeabdab1c430fd2c3481d765865da44a6bfdbff1f81874f6de3f2411a987f305

See more details on using hashes here.

File details

Details for the file cif2ice-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: cif2ice-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.11 Darwin/24.5.0

File hashes

Hashes for cif2ice-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa02de262604cb81b7d8da80b789a76e33c7642cd1f1fbd0a79cb9f7f3056a58
MD5 ca644facb26ff83b1e9d72e8be458daa
BLAKE2b-256 73df18daffa47269c9a9e5c6660a539950e02fbe97310404451ae0c9004cf6d0

See more details on using hashes here.

Supported by

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