Library to parse Nanonis files. Forked from https://github.com/underchemist/nanonispy
Project description
nanonispy
A small library written in python 3 to parse Nanonis binary and ascii files.
Nanonispy was made in needing to do a lot of analysis for scanning tunneling microscopy (STM) data, and thought this would be good practice in creating a proper python library. That being said it is in no way foolproof and if anybody else actually uses this please let me know if you run into issues.
Nanonispy can read Nanonis grid, scan, and point spectroscopy files. This means it will read the file header and parse that into a somewhat useful dictionary for later use, as well as read in the binary/ascii data in a relatively general way to accomadate data with multiple channels stored, or custom spectroscopy experiments.
Requirements
Currently written and tested with
python 3.9
python 3.8
python 3.7
python 3.6
Depends on
numpy
Install
For the most up-to-date version, install from github as pip and conda packages are not updated as frequently.
pip
pip install nanonispy
conda
conda install --channel https://conda.anaconda.org/underchemist nanonispy
github
Simply clone this repo and run
python setup.py install
Basic usage
Once installed, you should be able to import it to any python script or ipython session.
import nanonispy as nap
Then given a file,
grid = nap.read.Grid('/path/to/datafile.3ds')
You can look at the attributes and methods to determine the information available.
Running tests
Similar to the install, except run
python setup.py test
. If you have the nose module installed, it’s as simple as
nosetests
.
You can also see coverage of the tests as well as ignore the test discovery of numpy core packages (don’t quite understand why it does this) with
nosetests --with-coverage --cover-branches --cover-package=nanonispy
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nanonispy2-1.2.0.tar.gz
.
File metadata
- Download URL: nanonispy2-1.2.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65ad304de2bac8691c567795275e386f16d2f269d20c8e8d44fad06f82411d9c |
|
MD5 | 5de25d5259b32ff93ae5f40af37901d7 |
|
BLAKE2b-256 | 6a414388fef72035a2a1c9f67bdbb76a833c13d265548d7138d861bb32f86e15 |
File details
Details for the file nanonispy2-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: nanonispy2-1.2.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b19435cc0b80b787f452e5d235a881a1d3777fa3c648ef8b62e8ff43a40471c |
|
MD5 | 31eb5cacf1e33e49c060b46fc634dbc2 |
|
BLAKE2b-256 | 8f68e86c8adfd1399a120ae8af48264a346cdc562778e958beb92ec15233408d |