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 lasting from May 2021 to August 2021 under the supervision of Dr. Claudia Gomes da Rocha.
For future additions, feel free to fork the repository, but please give credit where it's due, either here or to Marcus Kasdorf.
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.3.0.tar.gz
.
File metadata
- Download URL: randomnwn-0.3.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f14c726520a1065c80119564ff4bf20119b909a79f323fb7460112680bf2ad1 |
|
MD5 | 63ae3a95cea69d3af5035c839628d57a |
|
BLAKE2b-256 | ff2a433edbe4858b6c5ee8714e4adefe93585c83b1530e02af1176f78a827db0 |
File details
Details for the file randomnwn-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: randomnwn-0.3.0-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c0cae34e41f670a4c5f564296f49f7587697ad812d31858f38c76fade4ec547 |
|
MD5 | 54658645e8c6903240fd0ad0156701a7 |
|
BLAKE2b-256 | e1347db763e214cef5bacf3ef43994a88d89eb80dabc9874fab83d86e479a94c |