Skip to content
Snippets Groups Projects
Commit b59db558 authored by Adam Fekete's avatar Adam Fekete
Browse files

refactoring

parent b241445a
No related branches found
No related tags found
1 merge request!1Draft: Refactor and Update the code
Pipeline #147959 failed
Showing
with 19 additions and 165 deletions
image: gitlab-registry.mpcdf.mpg.de/nomad-lab/atomic-features-package # image: gitlab-registry.mpcdf.mpg.de/nomad-lab/atomic-features-package
stages: # stages:
- doc_builds # - doc_builds
pages: # pages:
stage: doc_builds # stage: doc_builds
script: # script:
- cd atomic-features-package/docs/ # - cd docs/
- make html # - make html
- mv _build/html/ ../../public/ # - mv _build/html/ ../../public/
- cd ../../ # - cd ../../
artifacts: # artifacts:
paths: # paths:
- public # - public
only: # only:
- master # - master
- docs # - docs
- joss # - joss
File moved
File moved
File moved
...@@ -6,18 +6,4 @@ include atomicfeaturespackage/data/pymat/*.json ...@@ -6,18 +6,4 @@ include atomicfeaturespackage/data/pymat/*.json
include atomicfeaturespackage/data/matminer/*.table include atomicfeaturespackage/data/matminer/*.table
include atomicfeaturespackage/data/lda2015/*.csv include atomicfeaturespackage/data/lda2015/*.csv
include atomicfeaturespackage/data/webele/*.csv include atomicfeaturespackage/data/webele/*.csv
include atomicfeaturespackage/docs/*
include atomicfeaturespackage/docs/_build/*
include atomicfeaturespackage/docs/_build/doctrees/*
include atomicfeaturespackage/docs/_build/html/*
include atomicfeaturespackage/docs/_build/html/_static/*
include atomicfeaturespackage/docs/_build/html/_static/css/*
include atomicfeaturespackage/docs/_build/html/_static/css/fonts/*
include atomicfeaturespackage/docs/_build/html/_static/fonts/*
include atomicfeaturespackage/docs/_build/html/_static/fonts/RobotoSlab/*
include atomicfeaturespackage/docs/_build/html/_static/fonts/Lato/*
include atomicfeaturespackage/docs/_build/html/_static/js/*
include atomicfeaturespackage/docs/_build/html/_sources/*
include atomicfeaturespackage/docs/_build/latex/*
include atomicfeaturespackage/docs/_static/*
include atomicfeaturespackage/docs/_templates/*
File deleted
include atomicfeaturespackage/LICENSE.txt
include atomicfeaturespackage/README.md
include atomicfeaturespackage/requirements.txt
include atomicfeaturespackage/data/dft/*.csv
include atomicfeaturespackage/data/pymat/*.json
include atomicfeaturespackage/data/matminer/*.table
include atomicfeaturespackage/data/lda2015/*.csv
include atomicfeaturespackage/data/webele/*.csv
include atomicfeaturespackage/docs/*
include atomicfeaturespackage/docs/_build/*
include atomicfeaturespackage/docs/_build/doctrees/*
include atomicfeaturespackage/docs/_build/html/*
include atomicfeaturespackage/docs/_build/html/_static/*
include atomicfeaturespackage/docs/_build/html/_static/css/*
include atomicfeaturespackage/docs/_build/html/_static/css/fonts/*
include atomicfeaturespackage/docs/_build/html/_static/fonts/*
include atomicfeaturespackage/docs/_build/html/_static/fonts/RobotoSlab/*
include atomicfeaturespackage/docs/_build/html/_static/fonts/Lato/*
include atomicfeaturespackage/docs/_build/html/_static/js/*
include atomicfeaturespackage/docs/_build/html/_sources/*
include atomicfeaturespackage/docs/_build/latex/*
include atomicfeaturespackage/docs/_static/*
include atomicfeaturespackage/docs/_templates/*
# atomic-features-package
Unified package that contains atomic-features from various sources like PYMATGEN,MAGPIE,LDA2015,WEBELEMENTS and FHI_dft can be imported into Jupyter-notebook for performing various machine learning studies
**-------------------------------------------------------------------------------------------------------------------------------------------------------**
# Getting Started
To install this package download it as tar.gz archive. Then use the following command
```pip install ./<name-of-tar-package>.tar.gz```
**-------------------------------------------------------------------------------------------------------------------------------------------------------**
# Importing this package modules in Jupyter notebook
```from atomicfeaturespackage.atomicproperties import periodictable```
This module is a visualization tool that allows us to visualize atomic properites of all elements accross periodic table as a heatmap. Currently, this tool is able to visualize atomic properties acessible from atomic_properties_dft,atomic_properties_magpie,atomic_properties_pymat and atomic_properties_lda2015 module.
Below is an example line of code you need to run to visualize data calculated via the HSE06 functional and spinless settings.
```periodictable.heatmap(Spin = 'False', method = 'hse06')```
In method arg in heatmap function one can specify what functional one wants visualize atomic properties for.
Currently data evaluated are available from following functionals 'HSE06', 'REVPBE', 'PW-LDA', 'PBE' , 'PBESOL', 'PBE0', 'LDA2015' .<br/>
Spin Setting can be set to 'TRUE' or 'FALSE'.
After running the above line of code one gets a plot of complete periodic table of elements. From the dropdown menu, one can select which property one is interested to check and the table is updated automatically to show the corresponding heatmap.
**-------------------------------------------------------------------------------------------------------------------------------------------------------**
```from atomicfeaturespackage.atomicproperties import atomic_properties_dft as dft```
This module contains several atomic features accessible from FHI-AIMS dft calculations
To access atomic properties calculated from different DFT functionals and spin setting one first need to instantiate Specific functional and spin setting one is interested to access using the method function of this module. This can be done as follows :
```dft.method(method = 'pbe', Spin = 'False')```
Currently data evaluated are available from following functionals 'HSE06', 'REVPBE', 'PW-LDA', 'PBE' , 'PBESOL', 'PBE0'.
Spin Setting can be set to 'TRUE' or 'FALSE'.
One can now acess individually different properties using element symbol as following
```
dft.C.atomic_ea
dft.C.atomic_r_p
dft.C.atomic_ip_by_half_charged_homo
```
To get a list of properties accessible one can just press Tab after typing in `dft.C.`
Use symbol method from atomic_properties_dft module to acess property of interest of elements at once say for example we have a python list ls = ['Sc','Ti', 'V', 'Cr'] and we wish to get atomic number of these elements we can do the following
```
atomic_number = []
for i in ls:
atomic_number.append(dft.symbol(i).atomic_number)
```
**-------------------------------------------------------------------------------------------------------------------------------------------------------**
```from atomicfeaturespackage.atomicproperties import atomic_properties_pymat as pymat```
This module contains several atomic features accessible from pymatgen
One can now acess individually different properties using element symbol as following
```
pymat.C.atomic_ea
pymat.C.atomic_r_p
pymat.C.atomic_ip_by_half_charged_homo
```
To get a list of properties accessible one can just press Tab after typing in `pymat.C.`
Use symbol method from atomic_properties_pymat module to acess property of interest of elements at once in similar manner as described for atomic_properties_dft module above.
**-------------------------------------------------------------------------------------------------------------------------------------------------------**
```from atomicfeaturespackage.atomicproperties import atomic_properties_lda2015 as lda```
This module contains several atomic features accessible from lda2015 paper
One can acess individually different properties using element symbol as following
```
lda.C.atomic_ea
lda.C.atomic_r_p
```
To get a list of properties accessible one can just press Tab after typing in `lda.C.`
Use symbol method from atomic_properties_lda2015 module to acess property of interest of elements at once in similar manner as described for atomic_properties_dft module above.
**-------------------------------------------------------------------------------------------------------------------------------------------------------**
```from atomicfeaturespackage.atomicproperties import atomic_properties_webele as webele```
This module contains several atomic features accessible from Webelements website
One can acess individually different properties using element symbol as following
```
webele.C.atomic_radius
webele.C.melting_point
```
To get a list of properties accessible one can just press Tab after typing in `webele.C.`
Use symbol method from atomic_properties_webele module to acess property of interest of elements at once in similar manner as described for atomic_properties_dft module above.
File deleted
File deleted
File deleted
File deleted
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment