Skip to main content

Run NeuroExplorer Python scripts and read and write .nex and .nex5 files in any Python development environment (VS Code, Spyder, etc.).

Project description

nex-Python-package

Python package for running NeuroExplorer Python scripts an any Python development environment (VS Code, Spyder, etc.)

Description

Provides a simple way to run Python scripts that control NeuroExplorer (open data file, get file data, run analysis, save results, etc.) in any Python IDE.

See NeuroExplorer Python Scripting Documentation for detailed information about Python scripting in NeuroExplorer.

To install the package, open Windows Command Prompt, type pip install -U nex and press Enter.

If you are using Anaconda:

  • Type Anaconda Prompt in the Windows Search Bar, select Anaconda version and then click on it
  • Type pip install -U nex in Anaconda Prompt window and press Enter

After the package is installed, you can run NeuroExplorer Python scripts in any Python development environment.

For example, to run PSTH analysis saved in the template PerieventHistograms.ntp, run this Python code:

import nex
doc = nex.GetActiveDocument()
# run PSTH analysis saved in the template PerieventHistograms
nex.ApplyTemplate(doc, "PerieventHistograms")

The package also provides classes to read and write .nex and .nex5 data files.

import nex.nexfile
reader = nex.nexfile.Reader()
fileData = reader.ReadNexFile(r"C:\path\to\file.nex5")

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

nex-1.0.6-py3-none-any.whl (27.2 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