Modelling and analyzing random nanowire networks in Python.
Project description
Random NWNs
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
File details
Details for the file randomnwn-0.2.6.tar.gz
.
File metadata
- Download URL: randomnwn-0.2.6.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee521115c316a66866243a95fbb1a93030b969ecdbd8fc16cb8f68bfba3c5e73 |
|
MD5 | 67a289733c5aa81b862a4edca59882c4 |
|
BLAKE2b-256 | 3a46fd1d054a238855c7d0bb0b5c5bd5548c8fc68820f7e34d2c9964b15fe390 |
File details
Details for the file randomnwn-0.2.6-py3-none-any.whl
.
File metadata
- Download URL: randomnwn-0.2.6-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba8cf844f3a1d993d7aaf180835f23693ece90c1996509cc1c28b093eb6f4b59 |
|
MD5 | e0defd5e0b407d7ae1eb0a33a9b29b58 |
|
BLAKE2b-256 | 2f856cbce9b101f6abc7026d4e1161d5782072e37bbf981d54efedb5590dba54 |