Giter Club home page Giter Club logo

metaarray's People

Contributors

campagnola avatar cboulay avatar ixjlyons avatar j9ac9k avatar marcusmueller avatar outofculture avatar pbmanis avatar

Watchers

 avatar  avatar

Forkers

spahlimi

metaarray's Issues

Deprecate MetaArray.view

MetaArray.view was deprecated in the PyQtGraph source, presumably to better align with numpy.

hdf5 vs. h5df

Hi,

MetaArray cannot be installed with pi currently, because in setup.py it requires the package "hdf5" which is not available on pypi. I think this is a little mistake and instead of
install_requires=["numpy", "hdf5"],
it should have been:
install_requires=["numpy", "h5df"],

Can you fix this and publish a new metaarray release?

Thanks!

Can not evaluate strings of form "3000L"

This particular issue has been a problem for several years, even when metaarray was part of pyqtgraph. I have manually patched this several times, but perhaps it is time for a proper solution.

Camera data (in acq4) may have values written with "L" appended to the integer. This causes a failure in readHDF5Meta, where the value string cannot be evaluated.

A simple solution to this is (lines 897-903 of init.py):

        if isinstance(val, str):  # strings need to be re-evaluated to their original types
            if val[-1] == 'L':  # strip trailing "long" 
                val = val[:-1]
            try:
                val = eval(val)
            except:
                raise Exception('Can not evaluate string: "%s"' % val)

A more robust solution might involve also capturing 'U', 'l' (lower case) or other characters that might be appended to a number. However, the only instance I have encountered in data stored by Acq4 is the 'L'.

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.