uedar / ase-state-interface

ASE calculator for STATE code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ase-state-interface

Installaion

Installation via Conda package manager

$ conda create -n ase_state_env python=3.7 pip -y
$ git clone https://github.com/uedar/ase-state-interface.git
$ conda activate ase_state_env
$ pip install ase-state-interface

Developer Notes

Setup developer environment using Conda

# Needs python3.6, ase for maximum compatability
# needs Proper linting tools (flake8 pydocstyle pylint autopep8) for compliance
# Create conda environment:
$ conda install -n dev -c conda-forge python=3.6 tk flask pylint flake8 ase=3.22 pytest=5.2 jupyterlab autopep8 pydocstyle

Visual Studio Code (vscode) python linting configuration

  • flake8, pylint and pydocstyle will be used together. STEPS:
  1. File > Preferences > Settings > Workspace
  2. Search 'python'
  3. Click 'Edit in settings.json'
  4. Add the following code
{
  "python.linting.flake8Enabled": true,
  "python.linting.pylintEnabled": true,
  "python.linting.enabled": true,
  "python.linting.pydocstyleEnabled": true
}
  1. Save and restart

Code-style Compliance checklist

  • Run pylint filename.py
  • Run flake8 filename.py

About

ASE calculator for STATE code


Languages

Language:Python 89.1%Language:Dockerfile 5.8%Language:Shell 5.2%