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.
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file randomnwn-0.5.6.tar.gz.
File metadata
- Download URL: randomnwn-0.5.6.tar.gz
- Upload date:
- Size: 36.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d63fc412bc894d7fab234d550db5b28f281117b591a48f3d5dfdc161d4f8ed0
|
|
| MD5 |
124f63895e6adc99e477ae65dd9d4f7c
|
|
| BLAKE2b-256 |
9987dae1fb19b076590371c18e7fe37503ddc2c3248344bf7610d90a5a6d0e2d
|
Provenance
The following attestation bundles were made for randomnwn-0.5.6.tar.gz:
Publisher:
publish-pypi.yml on marcus-k/Random-NWNs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
randomnwn-0.5.6.tar.gz -
Subject digest:
2d63fc412bc894d7fab234d550db5b28f281117b591a48f3d5dfdc161d4f8ed0 - Sigstore transparency entry: 631293586
- Sigstore integration time:
-
Permalink:
marcus-k/Random-NWNs@74af69f75632615b9c2e6fc6cc39588ad77fd17a -
Branch / Tag:
refs/tags/v0.5.6 - Owner: https://github.com/marcus-k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@74af69f75632615b9c2e6fc6cc39588ad77fd17a -
Trigger Event:
release
-
Statement type:
File details
Details for the file randomnwn-0.5.6-py3-none-any.whl.
File metadata
- Download URL: randomnwn-0.5.6-py3-none-any.whl
- Upload date:
- Size: 39.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d0a6133425c7c305ccad5ed148ff0e4f9ceb73ac802979782b50a12972a4baa
|
|
| MD5 |
e557830b550b66f01bd65d0b978569a0
|
|
| BLAKE2b-256 |
da2bac03954ad6c4680acd4fad5911a258972406a417d0f1f0e0a3b5ae402265
|
Provenance
The following attestation bundles were made for randomnwn-0.5.6-py3-none-any.whl:
Publisher:
publish-pypi.yml on marcus-k/Random-NWNs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
randomnwn-0.5.6-py3-none-any.whl -
Subject digest:
4d0a6133425c7c305ccad5ed148ff0e4f9ceb73ac802979782b50a12972a4baa - Sigstore transparency entry: 631293589
- Sigstore integration time:
-
Permalink:
marcus-k/Random-NWNs@74af69f75632615b9c2e6fc6cc39588ad77fd17a -
Branch / Tag:
refs/tags/v0.5.6 - Owner: https://github.com/marcus-k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@74af69f75632615b9c2e6fc6cc39588ad77fd17a -
Trigger Event:
release
-
Statement type: