Skip to main content

Modelling and analyzing random nanowire networks in Python.

Project description

MemNNetSim

MemNNetSim: Memristive Nanowire Network Simulator. A proof-of-concept Python package for modelling and analyzing memristive random nanowire networks (NWNs). This package, developed by Marcus Kasdorf, was initiated from a summer research project in 2021 under the supervision of Dr. Claudia Gomes da Rocha at the University of Calgary.

Table of Contents

Installation

MemNNetSim has been tested on Python 3.10 to 3.13. It is recommended to install MemNNetSim in a virtual environment such as with venv or conda/mamba.

For installing locally, a pip version of 21.1 or greater is required.

Installation from PyPI

Install the latest release of MemNNetSim using pip:

pip install mnns

Installation for development

Download or clone the GitHub repository:

git clone https://github.com/marcus-k/MemNNetSim.git
cd ./MemNNetSim

Then install the package in editable mode using pip:

pip install -e .[dev]

To install for editing the documentation, add the [docs] optional dependencies:

pip install -e .[docs]

Uninstallation

Uninstall MemNNetSim using pip:

pip uninstall mnns

Usage

Nanowire network objects are simply NetworkX graphs with various attributes stored in the graph, edges, and nodes.

>>> import mnns
>>> NWN = mnns.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)
>>> mnns.plot_NWN(NWN)
(<Figure size 800x600 with 1 Axes>, <AxesSubplot:>)

Figure_1

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

mnns-1.0.3.tar.gz (63.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mnns-1.0.3-py3-none-any.whl (53.5 kB view details)

Uploaded Python 3

File details

Details for the file mnns-1.0.3.tar.gz.

File metadata

  • Download URL: mnns-1.0.3.tar.gz
  • Upload date:
  • Size: 63.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mnns-1.0.3.tar.gz
Algorithm Hash digest
SHA256 be76d78a59269cbc1bae3e738f6ce8c2f36dc1c97e002b1df5def6b1ffa0876b
MD5 da32d55b824b7290739129eb94922c2e
BLAKE2b-256 e79fe9fe6ff5656102ecbbd2d1e5718ca780232cac4f89612f66ba1eaaa2d98a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnns-1.0.3.tar.gz:

Publisher: pypi-publish.yml on marcus-k/MemNNetSim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mnns-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: mnns-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 53.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mnns-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7108babfb7a61e376087a8a08a94fc2a86d884cffd4c98dce09a0a06c954d57f
MD5 2ab28731a6e6b489284b131f860b731d
BLAKE2b-256 cc5f804b91310db1dba26c4998529cf22682c77ebfa341fd96db7d87274995e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnns-1.0.3-py3-none-any.whl:

Publisher: pypi-publish.yml on marcus-k/MemNNetSim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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