GithubHelp home page GithubHelp logo

ccparser's Introduction

CCParser

A general parsing framework for outputs of Quantum Chemistry codes.

Dependencies

CCParser requires

  • Python 3.x
  • Python modules re, inspect, os and importlib
  • optional, but recommended: pandas

Installation

Until the parser is converted to a proper Python package, install the module by downloading the CCParser folder (not its contents) into a directory in your $PYTHONPATH.

If $PYTHONPATH is not set on your machine, create a folder intended for custom Python packages and add it to the $PYTHONPATH in your .bashrc (or .zshrc or other).

cd ~; mkdir .my_python_packages
echo 'PYTHONPATH=$PYTHONPATH:$HOME/.my_python_packages' >> .bashrc

Usage

Create a CCParser object specifying the output and software:

import CCParser as ccp

# short form
qc1 = ccp.Parser("calculation.out")

# full list of options
qc2 = ccp.Parser("calculation.out", software="Q-Chem", to_console=True, to_file=False, log_file="CCParser.log", to_json=False, json_file="CCParser.json")

Access the parsed quantities from the .results member variable. Since it's generally possible to parse the same quantity several times (e.g. geometry optimization), each result is stored in a list-like container. Access the individual quantity either by index or use the get_first()/get_last() function, e.g.

res = qc1.results
print(res.scf_energy[2])
print(res.scf_energy.get_last())

ccparser's People

Contributors

azech-hqs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.