Giter VIP home page Giter VIP logo

aiida-bigdft-plugin's Introduction

Build Status Coverage Status Docs status PyPI version

aiida-bigdft

Aiida plugin for BigDFT code. This is a simple plugin to integrate bigdft computation in an AiiDA workflow. Input file is generated using PyBigDFT tools, and output is returned as a dict, using the LogFile feature of PyBigDFT. Both futile and PyBigDFT are included in this plugin, BigDFT itself is not needed.

This plugin is the default output of the AiiDA plugin cutter, intended to help developers get started with their AiiDA plugins.

Features

  • Create input files and specify command line options via a python dictionary and BigDFTParameters:

    d = { 'ignore-case': True }
    BigDFTParameters = DataFactory('bigdft')
    bigdft_parameters = {}
    bigdft_parameters["dft"] = { "ixc": "LDA", "itermax": "5" }
    bigdft_parameters["output"] = { 'orbitals': 'binary' } 
    inputs['parameters'] = BigDFTParameters(dict=bigdft_parameters)
  • Run computation and retrieve output files (by default : logfile, time.yaml, forces, can be extended to retrieve any geenrated file):

    inputs['extra_retrieved_files'] = List()
    inputs['extra_retrieved_files'].set_list([["./data*/*", ".", 2]])
    result = run(CalculationFactory('bigdft'), **inputs)
    #or asynchronously
    future = submit(CalculationFactory('bigdft'), **inputs)
  • load back YAML logfile and turn it into a python dict (through PyBigDFT utilities) to analyze results

    #only if run asynchronously, load results from database first after completion
    result=load_node(future.pk).outputs
    
    logfile = result['bigdft_logfile'].logfile
    print (logfile['Energy (Hartree)'])

Installation

pip install aiida-bigdft
verdi quicksetup  # better to set up a new profile, or run reentry scan
verdi plugin list aiida.calculations  # should now show your calclulation plugins

Usage

Here goes a complete example of how to submit a test calculation using this plugin.

A quick demo of how to submit a calculation:

verdi daemon start         # make sure the daemon is running
cd examples
verdi run submit.py        # submit test calculation
verdi process list -a  # check status of calculation

The plugin also includes verdi commands to inspect its data types:

verdi data bigdft list
verdi data bigdft export <PK>

Development

git clone https://github.com/BigDFT-group/aiida-bigdft-plugin .
cd aiida-bigdft-plugin
pip install -e .[pre-commit,testing]  # install extra dependencies
pre-commit install  # install pre-commit hooks
pytest -v  # discover and run all tests

See the developer guide for more information.

License

MIT

Contact

[email protected]

aiida-bigdft-plugin's People

Contributors

testpersonal avatar

Stargazers

 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.