Skip to main content

faare

Project description

Fully Agnostic Atomic Render Environment

pipeline status PyPI License: GPL v3

FAARE is a pure-Python package for automated rendering of VASP structures on headless servers. Note that FAARE is designed for Linux Debian/Ubuntu and is not intended to work on other operating systems.

Installation

Installing Blender

FAARE is designed to operate with Blender LTS 3.6 and assumes Blender is installed in the /opt folder. Below, a brief set of instructions are provided to install Blender.

sudo apt install -y libxrender-dev libxxf86vm-dev libxfixes-dev libxi-dev libxkbcommon-dev libsm-dev 
sudo mkdir /opt
cd /opt
sudo wget https://ftp.halifax.rwth-aachen.de/blender/release/Blender3.6/blender-3.6.7-linux-x64.tar.xz
sudo tar -xvf blender-3.6.7-linux-x64.tar.xz
sudo rm blender-3.6.7-linux-x64.tar.xz

PyPi

First, make sure the required dependencies are installed

sudo apt install python3-venv

Next, create a virtual environment (compliant with PEP668) and activate it.

python3 -m venv ~/.venv
source ~/.venv/bin/activate

Finally, install faare in your virtual environment. The installation script will automatically download all dependencies.

pip install faare

Testing your installation

Create a new folder and place in the folder an OUTCAR file. Next, create a run.py file that has the following contents

from faare import Faare
import os

def main():
    ROOT = os.path.dirname(__file__)

    faare = Faare()
    faare.build_render(os.path.join(ROOT, 'OUTCAR'),
                       os.path.join(ROOT, 'manifest.json'))
    faare.execute_render(os.path.join(ROOT, 'manifest.json'),
                         os.path.join(ROOT, 'render.png'),
                         os.path.join(ROOT, 'renderlog.txt'))

if __name__ == '__main__':
    main()

Save the file and run it using python run.py. Three files should be written in the folder:

  • render.png: The picture of your system.
  • renderlog.txt: A log file on the rendering procedure.
  • manifest.json: A manifest file containing all the Blender settings.

Updating your installation

Assuming you are logged into your Python virtual environment, run

pip install faare --upgrade

Manual

See: https://faare-inorganic-materials-chemistry-6980722ff50f253a4f45dd9bd22.pages.tue.nl/

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

faare-0.4.1.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

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

faare-0.4.1-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: faare-0.4.1.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for faare-0.4.1.tar.gz
Algorithm Hash digest
SHA256 b72d383e747f60f0a9d84e4dc651a3acea34b2b14df445acfd73c79f1130e17b
MD5 9868600e514d077ab725c845fd904b5f
BLAKE2b-256 1aba88369457ca3316705d364a4d5a85d3bf051400e39237640b8044aafdd0f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: faare-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for faare-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 168ce7c5cf9200a5afcd28e08a2a43ea2dd8c534e547fc0f80b7e5078f7ccec2
MD5 50dee8361ce39c691f5d017e7d8471f7
BLAKE2b-256 a42db707e2d47183933f652939512c52d9acb7c10f9eaa27d601ab701d563fd4

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