Giter VIP home page Giter VIP logo

igor.py's Introduction

Note

This package has been superseded by igor.

Use the new igor package with the following to get the same interface:

import igor.igorpy as igor

Igor.py

Author

Paul Kienzle <[email protected]>

License

This program is public domain

Read Igor Pro files from python.

Install

Using pip:

$ pip install igor.py

Using source, download and expand the source tree, change to the source directory and type:

$ python setup.py install

Change History

0.9.1 2015-09-11

  • pypi forced a revision upgrade to update the readme; it won't even allow the old 0.9 version to be restored on the site!

0.9 2011-10-14 Merlijn van Deen

  • access to data object using f.name in addition to f['name'] and f[i]
  • allow a data object to be used directly as an array, e.g., numpy.sum(f.name)
  • better unicode handling

0.8 2011-04-27 Paul Kienzle

  • initial release

Maintenance

When a new version of the package is ready, increment __version__ in igor.py and enter:

$ python setup.py sdist upload

This will place a new version on pypi.

igor.py's People

Contributors

pkienzle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

igor.py's Issues

decoding name attribute

Currently, igor.py returns the name attribute as bytestring - i.e. as "text" instead of u"text". It would be better if an unicode string was returned.

However, the igor pro docs state the following:

On Mac OS X, the system encoding in effect for Igor is determined by the first language in the Languages
list in the International Preferences panel at the time the Finder is launched. Typical system encodings are
"Mac Roman", for Western European languages, and "Mac Japanese".

On Windows, the system encoding in effect for Igor is determined by the "Language for non-Unicode Pro-
grams" setting in the Advanced tab of the Regional and Language Options control panel at the time the
operating system starts up.

(from http://www.wavemetrics.net/doc/igorman/II-03%20Expts%20Files%20Folders.pdf )

therefore, the best solution would probably be to use
name.decode(sys.getfilesystemencoding())

I'll see if I can whip up a patch sometime...

In any case, thanks for the library!

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.