Skip to main content

Modelling and analyzing random nanowire networks in Python.

Project description

Random NWNs Tests

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

For convenience, one can use the environment.yml file with Anaconda to create a new virtual environment with all the required dependencies.

conda env create -f environment.yml

This will create a new environment named randomnwn. To activate the environment, use:

conda activate randomnwn

Then, to install the package, use pip. One can install the package in the usual way above, or install it in editable mode to allow for local development. Navigate to the base folder and run:

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:>)

Figure_1

See the wiki pages for more detail on usage.

Uninstallation

To uninstall the package, use:

pip uninstall randomnwn

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

randomnwn-0.3.1.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

randomnwn-0.3.1-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file randomnwn-0.3.1.tar.gz.

File metadata

  • Download URL: randomnwn-0.3.1.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for randomnwn-0.3.1.tar.gz
Algorithm Hash digest
SHA256 78c51b75e072621c7ba69ee32d533549f149ae61b2a2ffd0371dbd0c765c84bc
MD5 3f7ab2033d59f25e536449c3d35209d9
BLAKE2b-256 a0cd2c59573fffe4fd96cff249513a2384e0fc0e7d8dae7134cbb49b71138180

See more details on using hashes here.

File details

Details for the file randomnwn-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: randomnwn-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for randomnwn-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aec02430f47f20209eb5c7b96cb2dfff02efed118a37a9a0acd2fc80c2eb03fe
MD5 088c6be5c162ac755a51732730947959
BLAKE2b-256 1a32764eb1cfe36db174870541bcbde87882b87d65daf584aa3e32f5c87b4df7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page