Skip to main content

A framework for the HiSPARC experiment

Project description

Introduction

https://img.shields.io/pypi/v/hisparc-sapphire.svg https://img.shields.io/badge/license-GPLv3-blue.svg https://img.shields.io/travis/HiSPARC/sapphire/master.svg https://img.shields.io/coveralls/HiSPARC/sapphire/master.svg?label=coveralls https://img.shields.io/codecov/c/github/HiSPARC/sapphire/master.svg?label=codecov

SAPPHiRE is a Simulation and Analysis Program Package for HiSPARC Research and Education. It was created in the process of completing the PhD research of David Fokkema. The history of this repository contains the complete simulation, analysis and plot generation code that formed the basis for David’s thesis. Arne de Laat took over development of SAPPHiRE while working on his own PhD research.

This repository is created with a sole purpose in mind: to enable HiSPARC students, teachers and researchers to easily gain access to the data and perform common simulation and analysis tasks. Historically, starting work on the data, or extending an existing analysis code, has involved elaborate installation instructions, heavy customizations to the software, countless hours going over opaque parts of code and a general feeling of anguish and despair. SAPPHiRE’s ultimate goal: no more of that.

Installation

Required: Python. pip will take care of dependencies, but installing numpy, scipy and pytables from a python distribution is preferred. We use miniconda, which includes the conda package manager.

First, install conda and optionally create a virtualenv:

$ conda create --name hisparc python numpy scipy pytables
$ source activate hisparc

or alternatively just install the dependencies:

$ conda install numpy scipy pytables sphinx

Then, using pip:

$ pip install hisparc-sapphire

This should install sapphire with all requirements. More extensive installation instructions are available in the documentation in the doc/ directory. You can compile them using Sphinx, or you can follow this link: https://docs.hisparc.nl/sapphire/.

To check if it worked start Python and load the package:

import sapphire

You’re done!

Development

Install python (preferably using conda) as described above but clone the sapphire repo instead of installing using pip:

$ git clone https://github.com/HiSPARC/sapphire.git
$ cd sapphire
$ python setup.py develop

Version release

Important: First check if the last commit passes the tests on Travis CI!

To release a new version modify the version number in setup.py. Then create a commit for the new release with a title like ‘Bump version to vX.Y.Z’ and a message that contains a summary of the most important changes since the last release. Then tag the commit and push it to GitHub:

$ git tag vX.Y.Z
$ git push --tags

Then upload the new version to PyPI (this requires the wheel and twine packages):

$ python setup.py sdist bdist_wheel
$ twine upload dist/hisparc-sapphire-X.Y.Z.tar.gz
$ twine upload dist/hisparc_sapphire-X.Y.Z-py2.py3-none-any.whl

The latest version is then available from PyPI.

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

hisparc-sapphire-1.7.0.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

hisparc_sapphire-1.7.0-py2.py3-none-any.whl (6.2 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file hisparc-sapphire-1.7.0.tar.gz.

File metadata

  • Download URL: hisparc-sapphire-1.7.0.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/27.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.1

File hashes

Hashes for hisparc-sapphire-1.7.0.tar.gz
Algorithm Hash digest
SHA256 525bc1034355b8fa7a1cfcbf5eb872b83fc0d872dddc9fd6e8ef1ad6c72ac0a6
MD5 00fb9ee040f0e1653eadc3792baa14f7
BLAKE2b-256 3e1df47650fa8194179b337ec578bc2f856e8552707d95bccf2d982fd0377b77

See more details on using hashes here.

File details

Details for the file hisparc_sapphire-1.7.0-py2.py3-none-any.whl.

File metadata

  • Download URL: hisparc_sapphire-1.7.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.2 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/27.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.1

File hashes

Hashes for hisparc_sapphire-1.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 02ed4559d2c1f4d4b5f19f6ad4ab7293726593c155c74368905d7c736f6d4fc9
MD5 ed76a3960fb64e777a8044eb47e0e136
BLAKE2b-256 80956b1bf6341f5c2d485e681729faf7c6e8342570c14886dc8a7c8d4339ead5

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