QCOBJ Python Package Documentation

Foreword

QCOBJ has been developed by two programmers working in the Aerial Operations group of the IRI Research Section at OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale.

Python is their favourite programming language since 2006.

The authors:

Roberto Vidmar, Nicola Creati

_images/vidmar.jpg _images/creati.jpg

What is QCOBJ?

QCOBJ is a package to manage configuration files with values that can be physical quantities.

In scientific applications values assigned to keywords often represent physical quantities that can be specified in various system of units. Conversion of derived pysical quantities from one system to another can be very frustrating and is error pone if left to the user.

QCOBJ tries to give a solution to this problem.

QCOBJ in short

  • create/edit configuration files with the power of ConfigObj

  • mix physical quantities at your pleasure: specify pressure parameter like

    • pressure = 300.0 Pa or
    • pressure = 0.03 N / cm**2 or
    • pressure = 2.842 kgf / ft**2

    and let QCOBJ handle the conversion for you.

  • create validation files with physical quantities and valid range for all parameters.

  • use the validation file to define the preferred physical quantities

  • use qcobj.CfgGui to develop your own Qt based GUI to show/edit configuration files.

Dependencies

It relies on ConfigObj, Pint and PySide (or PyQt4, see qcobj.qtCompat) for the gui.

Credits

This package was possible thanks to Hernan E. Grecco <hernan.grecco@gmail.com> who released and mantains Pint and helped in the integration.

Note

The package depends on either PySide or PyQt4, and has ben tested with Python 2.7.6, Python 3.4.3, PySyde 1.1.0, PyQt4 4.8.1

More

Warning

This code has been tested only on Linux (Ubuntu 14.04.5 LTS) but should work also on Mac and Windows (Xp and greater).

Warning

This is work in progress!

Indices and Tables