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 going from May 2021 to August 2021.
Table of Contents
Installation
Random NWNs can be installed from PyPI for quick use or installed manually for development.
Latest
The latest version can be installed from PyPI:
pip install randomnwn
Development
Download this repository, then navigate to the base folder and run:
pip install .
To install the package in editable mode instead (i.e. using the local project path), one can use:
pip install -e .
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.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca216d00bc2569fccaa9fd0e6e8d558f8bd74235f2c120ad6e16c22638e429b3 |
|
MD5 | b13889ce8cda314a68580e7d217d6d0d |
|
BLAKE2b-256 | f6cf99dc4f268104e0591e2ac4a2742752a30316eb568462998aa87a42bde85f |