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.
This repository is discontinued, to be replaced its successor with: https://github.com/marcus-k/MemNNetSim
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
Type: JDA
Wires: 750
Electrodes: 0
Inner-wire junctions: None
Wire junctions: 3238
Length: 50.00 um (7.143 l0)
Width: 50.00 um (7.143 l0)
Wire Density: 0.3000 um^-2 (14.70 l0^-2)
>>> 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
Metadata
Release files for randomnwn 0.5.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| randomnwn-0.5.6.tar.gz | 36.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| randomnwn-0.5.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 76.6 kB
Release files / randomnwn-0.5.6.tar.gz
| Download URL | randomnwn-0.5.6.tar.gz |
|---|---|
| Size | 36.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d63fc412bc894d7fab234d550db5b28f281117b591a48f3d5dfdc161d4f8ed0
|
|
BLAKE2b-256 checksum How to use checksums |
9987dae1fb19b076590371c18e7fe37503ddc2c3248344bf7610d90a5a6d0e2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2025.
Transparency logRelease files / randomnwn-0.5.6-py3-none-any.whl
| Download URL | randomnwn-0.5.6-py3-none-any.whl |
|---|---|
| Size | 39.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d0a6133425c7c305ccad5ed148ff0e4f9ceb73ac802979782b50a12972a4baa
|
|
BLAKE2b-256 checksum How to use checksums |
da2bac03954ad6c4680acd4fad5911a258972406a417d0f1f0e0a3b5ae402265
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2025.
Transparency log