Modelling and analyzing random nanowire networks in Python.
Project description
Random NWNs ![Tests](https://pypi-camo.freetls.fastly.net/cd884099d1f4360644a29f0be4168fe006f75da2/68747470733a2f2f6769746875622e636f6d2f6d61726375732d6b2f52616e646f6d2d4e574e732f616374696f6e732f776f726b666c6f77732f707974686f6e2d7061636b6167652e796d6c2f62616467652e737667)
Python package for modelling and analyzing random nanowire networks. This package was a summer research project lasting from May 2021 to August 2021 under the supervision of Dr. Claudia Gomes da Rocha.
Update: This project will now be continuing as of May 2024. If you are using this project, please note there will be active development on it and the functionality may change.
For future additions, feel free to fork the repository. Please cite Marcus Kasdorf if you wish to extend the project.
Table of Contents
Installation
Random NWNs can be installed from PyPI for quick use or installed manually for development.
Production
The latest version of randomnwn can be installed from PyPI:
pip install randomnwn
An Anaconda environment file is also provided to create a new virtual environment with the minimum required dependencies required to run the package.
conda env create -n randomnwn -f environment.yml
Be sure you activate the environment before using the package!
conda activate randomnwn
Development
One can use the dev-environment.yml
file with Anaconda to create a new
virtual environment with all the required dependencies for development.
conda env create -n randomnwn -f dev-environment.yml
This will also install the randomnwn package in editable mode (i.e. as if
running pip install -e .
in the base folder).
Usage
Nanowire network objects are simply NetworkX graphs with various attributes stored in the graph, edges, and nodes.
>>> import randomnwn as rnwn
>>> NWN = rnwn.create_NWN(seed=123)
>>> NWN
<networkx.classes.graph.Graph at 0x...>
>>> rnwn.plot_NWN(NWN)
(<Figure size 800x600 with 1 Axes>, <AxesSubplot:>)
See the wiki pages for more detail on usage.
Uninstallation
To uninstall the package, use:
pip uninstall randomnwn
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for randomnwn-0.5.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 927038c377326ce099759212828e8186c236739ae34ee72cccfc88ce44f6b8ad |
|
MD5 | 901d6e00354e81e2dd2d65d6de874e31 |
|
BLAKE2b-256 | 45245617a5c027ee281450536ea7e95f7302d60d4c5aa4e71baf5d4ef0e57e4d |