Skip to main content

A module for processing user data to NN input

Project description

Neural Network inputs MAKER

Description

This python package will detect the output of other codes (still Quantum Espresso) and create a json file that can be used as the raw input for Neural Networks.

Prerequisite

The python libraries which are needed to install:

numpy,
pandas,
json,
collections,
collections.abc,
ase.data,
glob

Other codes and necessary files:

This package designed in a way that needs 2 inputs.

QE output It takes the input from Quantum Espresso OUTPUT (PWSCF).

SYSINFO.JSON This file has the information about the hardware details and creates by IDENTIKEEP plugin. Make sure that the corresponding files exist in the directory.

How to install

Method 1:

Installation is based on Python Package Index (PyPI) repository.

pip install NNimaker

Method 2:

However, if you prefer to create the wheel of package on your laptop, you just need to download the source code from the origin repository . Then follow the path below to create the wheel on your system and then install it. (Note that you may need use virtual environment to install the necessary packages)

pip install setuptools wheel
python setup.py sdist bdist_wheel
pip install dist/NNimaker-<VERSION>-py3-none-any.whl 

How to USE

It is possible to use terminal commands ( The console point is provided). Since it supports just Quantum Espresso output (till this moment), the command is:

NNimake_QE  --folder [DIRECTORY] --outname [OUTPUT] --netinfo [NETWORK INFORMATION] --algname [ALGORITHM]

All of the arguments have default values. Default for directory is ./ , Default for output name is data.json, Default for netinfo is Unknown, and Default for algorithm name is DAVIDSON. For example, I put the sysinfo.json and output file of QE in ../work/ directory. The command line would be:

NNimake_QE --folder ../work/ --netinfo "DrogonFly..."

You can import the package in your python code directly:

from NNimaker import create_json

create_json("../work", outname="data.json", net_info="Unknown", algoname='davidson')

Good luck!


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

NNimaker-1.4.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

NNimaker-1.4-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file NNimaker-1.4.tar.gz.

File metadata

  • Download URL: NNimaker-1.4.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for NNimaker-1.4.tar.gz
Algorithm Hash digest
SHA256 ac5ff0b1c17ace2d4a8cc2a32de3ca97dfa21012435fa14761787ba4bcf13c3f
MD5 366574b94ed9643c5d7dd3169b73a8e3
BLAKE2b-256 fbe6b8a6dbc20ae8543c504ca49a577b22e8050fb97b1f3e14f08e71d56b8d20

See more details on using hashes here.

File details

Details for the file NNimaker-1.4-py3-none-any.whl.

File metadata

  • Download URL: NNimaker-1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for NNimaker-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d0ed220e710b2a00c6d38d131f7dbb2798dc9637a56bf64519617c019e597034
MD5 e467883a4d4e21c1b4562b328ecdd75e
BLAKE2b-256 636c35951829878aa8466a0ef1950d4cc0b9a280a652f1f80da32789d648cb2f

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