Skip to main content

Find the differences between NEURON objects.

Project description

nrn-diff

Find differences between NEURON objects.

Installation

pip install nrn-diff

Usage

>>> from nrn_diff import pretty, diff
>>> from patch import p
>>> from neuron import h
>>> s1 = p.Section()
>>> s2 = h.Section()
>>> diff(s1, s2)
None
>>> s1.insert('pas')
>>> diff(s1, s2)
{"segs": [({"pas": {"e": -70, "g": 0.001, "i": 0.0}}, None)]}
>>> pretty(diff(s1, s2))
1a) Arg 1 differs in segment 0:
    * It has the mechanism 'pas' with params:
        - e: -70
        - g: 0.00
1b) Arg 2 differs in segment 0:
    * It does not have the mechanism 'pas'.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nrn_diff-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file nrn_diff-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: nrn_diff-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for nrn_diff-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ecb7f5873fe4049bc4984376e033b9d9b3278d756e4ad11ae1704079412ceb4
MD5 3a055a3a3ee6b8091f12c3c132691959
BLAKE2b-256 ec4d1be223cb057a6ad9fb8228237c604e3a26186cf2a39656f9541364489cfb

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