Giter VIP home page Giter VIP logo

pyflat's Introduction

pyflat

Python loader for Omicron Flat File Format

This script parse the Omicron Matrix Flat File Format to return a python object containing the measured data in physical units and all the relevant measurement parameters in a multi-level dictionnary. The implementation simply follows the Omicron Flat File Format documentation.

Infos

flatfile.py written by François Bianco, University of Geneva - [email protected]

Usage

See example log for a very rough and basic example.

Copyright

Copyright © 2009-2013 François Bianco, University of Geneva - [email protected]

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Updates

2013-01 fbianco: added support for Matrix 3.1-1 which breaks the axis keys naming 2011-11 fbianco: restructuring code 2011-08-05 fbianco: code cleaning 2009-05-06 fbianco: converted to a module 2009-03-17 fbianco: added drawing capabilities 2008-11-21 fbianco: first version

pyflat's People

Contributors

fbianco avatar

Watchers

 avatar  avatar

pyflat's Issues

open flat file issues

Hi,

I have the following error when I try .openFlatFile().

WARNING: Missing axis key for %s,
trying fall-back values.

If the data file does not load, add a new axis keys
dictionary in the source code.
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-15-4ce84df825e5> in <module>
----> 1 read.openFlatFile()

~/Desktop/mtrx2flat/mtrx2flat.py in openFlatFile(self)
    337             print("If the data file does not load, add a new axis keys")
    338             print("dictionary in the source code.")
--> 339             self.axis_keys = self.axis_keys["%s"]
    340             self.axis_keys = self.axis_keys["fall-back"]
    341 

KeyError: 'fall-back'

Could you provide assistance?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.