Skip to main content

Clean and add extra information to data produced by the battery cyclers from Novonix.

Project description

build coverage Documentation Status pypi zenodo

Preparing Novonix Data

preparenovonix is a Python package that handles common issues encountered in data files generated with a range of software versions from the Novonix battery-testers. This package can also add extra information that makes easier coulombic counting and relating a measurement to the experimental protocol. The package provides a master function, prepare_novonix, that can run at once the cleaning and adding derived information, with flexibility to choose only some features. There is a separate function to simply read a column by its given name.

Example

The example.py runs over the given example data, producing a new file and a plot that compares the original and the prepared data. To run this example, simply type: python example.py.

Requirements and Installation

This code has been developed in Python 3.7.1 and it is compatible with Python above 3.5 versions. The code has been tested to run in Windows, OSX and Linux operating systems.

This code uses numpy as specified in docs/requirements.txt. The ploting routine from the example.py also requires the use of matplotlib.

The code can be run directly from a cloned GitHub repository or it can also be installed as a python package through pip:

pip install preparenovonix

The functions in the package can be used after importing novonix_add, for example as follows:

import preparenovonix.novonix_add as prep

The code has been tested within Matlab R2018a.

Running preparenovonix code from MatLab

To run the code from Matlab, Python will need to be installed including the packages: numpy, pathlib and preparenovonix (see details above). Ensure that Matlab can see your installation of Python by running pyversion. If this is not the case then: (i) find where your Python executable is (within a python terminal you can do this by typing: import os, sys ; os.path.dirname(sys.executable)), (ii) type within your MatLab interpreter pyversion [path to python executable] and (iii) check that now the path to Python is recognised with pyversion. Make sure that

In your code you can add the following lines that will call the master function from the package, catching exceptions:

try
     py.preparenovonix.novonix_prep.prepare_novonix(file_to_open,...
             pyargs('addstate','True',...
             'lprotocol','True',...
             'overwrite','True',...
             'verbose','False'));
catch e
     e.message
     if(isa(e,'matlab.exception.PyException'))
             e.ExceptionObject
     end
end

Compatibility

This code has been tested with data generated by different versions of the Novonix software. If you encounter issues running the code for any version of Novonix software report an issue. Note that an example file will be needed in order to improve the code. List of the Novonix software. If you encounter issues running the code for any version of Novonix software report an issue. Note that an example file will be needed in order to improve the code. List of the Novonix software versions the code has been tested against:

  • 3.0.2.3

  • 3.0.2.1

  • TO

  • 2.0.0.7

  • 1.9.4.0

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

preparenovonix-1.0.3.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

preparenovonix-1.0.3-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: preparenovonix-1.0.3.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for preparenovonix-1.0.3.tar.gz
Algorithm Hash digest
SHA256 684a1434457dd2695f5a4afee7fbf3892188c290260c831ab9abdf67cb994edc
MD5 f2b4cfb7b71fe731e2805ec053494c4e
BLAKE2b-256 310c1aa7d1bca131a189d3e2f33ac4bc59fbb39001317866d4a2683142567541

See more details on using hashes here.

File details

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

File metadata

  • Download URL: preparenovonix-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for preparenovonix-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8877c0993b7737abc24fe2e5ff5c60fba087f84de6345481b08fbfe5dad5092c
MD5 8be75649e4bcc7a27eff2b231fe20ad7
BLAKE2b-256 345971578c0388b237191e9665656cb506bba5091a695acccec7276124156640

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