Difference between revisions of "First steps in Yambopy"

From The Yambo Project
Jump to navigation Jump to search
m
Line 7: Line 7:


=== Setup ===
=== Setup ===
First of all, make sure that you have a suitable python environment (crated for example with [conda][https://docs.conda.io/projects/miniconda/en/latest/] or [venv][https://docs.python.org/3/library/venv.html]) with python >=3.8.
First of all, make sure that you have a suitable python environment (crated for example with [[https://docs.conda.io/projects/miniconda/en/latest/|conda]] or [[https://docs.python.org/3/library/venv.html|venv]]) with python >=3.8.


Then, you may install yambopy in one of the following ways:
Then, you may install yambopy in one of the following ways:
Line 15: Line 15:
  pip install yambopy
  pip install yambopy


* In case you don't want to download from the pip repository and prefer to install a version of yambopy locally, you may download the appropriate tarball from the [yambopy github page][https://github.com/yambo-code/yambopy/releases]. Extract the tarball, enter the yambopy folder and type:
* In case you don't want to download from the pip repository and prefer to install a version of yambopy locally, you may download the appropriate tarball from the [[https://github.com/yambo-code/yambopy/releases|yambopy github page]]. Extract the tarball, enter the yambopy folder and type:
   
   
  pip install .
  pip install .
 
 
* In case you want the latest version of the code including new updates and patches that might not be present in the official version, then you can clone the yambopy git repository (a basic knowledge of git may be helpful):
* In case you want the latest version of the code including new updates and patches that might not be present in the official version, then you can clone the yambopy git repository (a basic knowledge of git may be helpful):



Revision as of 18:07, 1 February 2024

The yambopy project aims to develop python tools to:

  • Read and edit yambo and quantum espresso input files
  • Easily perform pre- and post-processing of the simulation data for these two codes - including hard-to-get, database-encoded data beyond standard outputs
  • Provide easy visualization and plotting options
  • Set up simple automatization workflows (e.g., convergence tests)

Setup

First of all, make sure that you have a suitable python environment (crated for example with [[1]] or [[2]]) with python >=3.8.

Then, you may install yambopy in one of the following ways:

  • In order to install the officially released version type:
pip install yambopy
  • In case you don't want to download from the pip repository and prefer to install a version of yambopy locally, you may download the appropriate tarball from the [github page]. Extract the tarball, enter the yambopy folder and type:
pip install .
  • In case you want the latest version of the code including new updates and patches that might not be present in the official version, then you can clone the yambopy git repository (a basic knowledge of git may be helpful):
git clone https://github.com/yambo-code/yambopy.git
cd yambopy
pip install .
  • In principle, pip should take care of the required python dependencies. They are numpy, scipy, matplotlib, netCDF4, lxml, PyYAML and monty. In case some dependency-related problem arises, you can install each of them separately beforehand with:
pip install dependency-name

Tutorials

Now yambopy is ready to use! Just go to the tutorials folder and follow the docs!

cd tutorial/

On this wiki, we provide steps for the following tutorials: