Skip to content
satorchi edited this page Jun 11, 2019 · 7 revisions

qubicpack

Qubic Pack

authors:

  • Steve Torchinsky satorchi@apc.in2p3.fr
  • Michel Piat
  • Jean-Christophe Hamilton
  • and other members of the QUBIC team

QubicPack is a package to read QUBIC data saved by QubicStudio which is the software which pilots the QUBIC instrument. QubicPack is implemented as a python class with a number of methods. It is intended to be used with your favourite python environment, such as ipython or Jupyter. A simple example of a qubicpack program is the following:

>>> from qubicpack.qubicfp import qubicfp
>>> a = qubicfp()
>>> a.read_qubicstudio_dataset('/path/to/dataset/')

The above three lines will read a QubicStudio dataset. Afterwards, you have access to a number of built in methods to plot data, perform some analysis, and extract data for use in your own scripts. Choose a category on the right for more details. In particular, look at:

QubicPack for running experiments in the Millimetre Lab

QubicPack was originally developed as an add-on to [https://github.com/satorchi/pystudio/wiki](PyStudio by Pierre Chanial) which is a python interface to QubicStudio. It is used to run experiments in the APC Millimetre Lab. For example:

>>> from qubicpack import qubicpack
>>> go=qubicpack()
>>> Vtes=go.get_iv_data()

The above three lines will run the I-V curve measurements for all TES. Afterwards, you have all the data saved in the qubicpack object. The data has also been saved to a file for future analysis offline.

QubicPack can be used to read and plot saved data. For example, to plot the I-V curve of TES#70 from data saved on 4 August 2017, do the following:

>>> from qubicpack import qubicpack
>>> go=qubicpack()
>>> go.read_fits('QUBIC_TES_20170804T134238UTC.fits')
>>> go.plot_iv(70)

More detailed help is available at https://github.com/satorchi/qubicpack/wiki

A QubicPack object (called "go" in the example above) has a number of methods and internal variables which are required to run measurements. Once you create a QubicPack object, the parameters will have their default values. Changing a parameter, such as the integration time, for example, will make the change available to all the methods which use integration time, so that you don't have to reset the parameter for every type of measurement.

Detailed help

Help documentation can be found on the wiki hosted by GitHub: https://github.com/satorchi/qubicpack/wiki

Clone this wiki locally