outofculture / metaarray Goto Github PK
View Code? Open in Web Editor NEWN-dimensional array with meta data such as axis titles, units, and column names.
License: MIT License
N-dimensional array with meta data such as axis titles, units, and column names.
License: MIT License
MetaArray.view
was deprecated in the PyQtGraph source, presumably to better align with numpy.
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!
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'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.