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

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

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.0.tar.gz (17.1 kB view hashes)

Uploaded Source

Built Distribution

randomnwn-0.3.0-py3-none-any.whl (21.7 kB view hashes)

Uploaded Python 3

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