Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HDF5 #8290

Open
sagetrac-magawake mannequin opened this issue Feb 17, 2010 · 25 comments
Open

Support HDF5 #8290

sagetrac-magawake mannequin opened this issue Feb 17, 2010 · 25 comments

Comments

@sagetrac-magawake
Copy link
Mannequin

sagetrac-magawake mannequin commented Feb 17, 2010

We would like to have hdf5 support into sage. This will include the C/C++ bindings and also should have the Java bindings.

To obtain HDF5:
http://www.hdfgroup.org/HDF5/release/obtain5.html

Current version of spkg (install in order):

Component: packages: optional

Keywords: hdf5 h5py hdf5python

Author: Andrzej Giniewicz

Issue created by migration from https://trac.sagemath.org/ticket/8290

@sagetrac-magawake sagetrac-magawake mannequin added this to the sage-5.11 milestone Feb 17, 2010
@williamstein
Copy link
Contributor

comment:1

Here is a quick spkg that works if you have libhdf5 devel packages installed on your computer:

http://sage.math.washington.edu/home/wstein/patches/h5py-1.2.1.spkg

Install it with

sage -i http://sage.math.washington.edu/home/wstein/patches/h5py-1.2.1.spkg

@sagetrac-magawake
Copy link
Mannequin Author

sagetrac-magawake mannequin commented Feb 17, 2010

comment:2

Thanks. Couple of requirements

  • Have it completely independent therefore be shipped with SAGE
  • Have all the C/C++ bindings includes into the SAGE tar ball

@sagetrac-magawake
Copy link
Mannequin Author

sagetrac-magawake mannequin commented Feb 17, 2010

Changed keywords from hdf5 h5py to hdf5 h5py hdf5python

@williamstein
Copy link
Contributor

comment:4

I also made an hdf5 library spkg, but the hdf5 version is evidently too new for h5py:

http://www.hdfgroup.org/ftp/HDF5/prev-releases/hdf5-1.8.0/src/hdf5-1.8.0.tar.gz

since compiling this, then h5py does not work.

@williamstein
Copy link
Contributor

comment:5

Hi,

So if you build

http://sage.math.washington.edu/home/wstein/patches/hdf5-1.6.9.spkg

and

http://sage.math.washington.edu/home/wstein/patches/h5py-1.2.1.spkg

then it should work. Example, do:

   sage -f  http://sage.math.washington.edu/home/wstein/patches/hdf5-1.6.9.spkg  http://sage.math.washington.edu/home/wstein/patches/h5py-1.2.1.spkg

I'm posting this for inclusion in the experimental repo.

@williamstein
Copy link
Contributor

comment:6

Example:

Here's a trivial example showing how to create a new HDF5 file and store a 100 x 20 array of floats:

>>> f = h5py.File("myfile.hdf5", 'w')
>>> f["MyDataset"] = numpy.ones((100,20))

And to get your data back:

>>> dset = f["MyDataset"]
>>> subset = dset[20:80,:]

See http://code.google.com/p/h5py/

@sagetrac-magawake
Copy link
Mannequin Author

sagetrac-magawake mannequin commented Feb 17, 2010

comment:7

Is it possible to have atleast hdf 1.8.2? 1.6.x is too old. Most of our files are 1.8.x format.

@jasongrout
Copy link
Member

@jasongrout
Copy link
Member

comment:9

Also, on the front page of the h5py project, it says "Transparently supports both HDF5 1.6 and 1.8.".

@jasongrout
Copy link
Member

comment:10

On http://code.google.com/p/h5py/wiki/FAQ, it says that Linux supports up to 1.8.3.

@jasongrout
Copy link
Member

comment:11

On http://code.google.com/p/h5py/wiki/FAQ, it says that Linux supports up to 1.8.3.

@sagetrac-aginiewicz
Copy link
Mannequin

sagetrac-aginiewicz mannequin commented Mar 20, 2010

comment:12

actually h5py should support hdf5 up to 1.8.4 an PyTables up to 1.8.3. I'd say sage should use hdf5 1.8, it's first version to introduce external links and utf8 encoded strings so two things that seems to be quite important, right?

@sagetrac-bascorp2
Copy link
Mannequin

sagetrac-bascorp2 mannequin commented May 26, 2010

comment:13

pictures of puppies

@sagetrac-aginiewicz
Copy link
Mannequin

sagetrac-aginiewicz mannequin commented Nov 8, 2010

comment:14

I made quick update of those to hdf5 1.8, also this version of h5py works with hdf5 from spkg (at least it works for me - only had to specify "--hdf=$SAGE_LOCAL" to build script).

http://lab15.im.pwr.wroc.pl/~giniew/h5py-1.3.0.spkg

http://lab15.im.pwr.wroc.pl/~giniew/hdf5-1.8.4.spkg (actually, it's 1.8.4 patch 1, latest supported by h5py at time of writing - wasn't sure if I should add the patch1 to name here).

They are based on packages posted here earlier - just updated the src to pointed h5py to local hdf5 copy.

@mwhansen
Copy link
Contributor

comment:15

Ping. These spkgs no longer exist.

@sagetrac-aginiewicz
Copy link
Mannequin

sagetrac-aginiewicz mannequin commented Dec 18, 2011

comment:16

Well, after a year I forgot about it - the files are present, but url changed. For now I don't have time to update them though (h5py is now 2.0.1 and hdf5 is 1.8.8). Anyway, working links:

http://im.pwr.wroc.pl/~giniew/h5py-1.3.0.spkg

and

http://im.pwr.wroc.pl/~giniew/hdf5-1.8.4.spkg

@sagetrac-aginiewicz
Copy link
Mannequin

sagetrac-aginiewicz mannequin commented Jul 25, 2012

Author: aginiewicz

@sagetrac-aginiewicz

This comment has been minimized.

@sagetrac-aginiewicz
Copy link
Mannequin

sagetrac-aginiewicz mannequin commented Jul 25, 2012

comment:17

I've updated spkgs with latest versions. Also, those spkgs now contains repositories and better descriptions in SPKG.txt files (description, license, dependencies, changelog - usual stuff). I've also added links to description to not hunt for them in comments

@jdemeyer
Copy link

comment:18

Please fill in your real name as Author.

@sagetrac-aginiewicz
Copy link
Mannequin

sagetrac-aginiewicz mannequin commented Jul 31, 2012

Changed author from aginiewicz to Andrzej Giniewicz

@jdemeyer
Copy link

comment:20

Are these supposed to be standard packages, optional packages or experimental packages?

@sagetrac-aginiewicz
Copy link
Mannequin

sagetrac-aginiewicz mannequin commented Aug 25, 2012

comment:21

In its current state (i.e. only hdf5+h5py) it might be not that useful to include in standard spkg. I believe it could be optional package. But if some other packages would be compiled with hdf5 support (especially R, which is standard package) situation might change. This is of course only my opinion and it might be not mirror others opinion.

Anyway, I got e-mail that h5py package got broken during upload to github. I had to recreate and reupload it (now, I will not trust github any more and keep other copy around) - it should work now.

@sagetrac-mister-wardrop
Copy link
Mannequin

comment:22

This would be really useful for making data interchangeable with other computing platforms. I look forward to seeing this included in Sage by default :).

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe
Copy link
Member

mkoeppe commented Jun 19, 2020

comment:28

Setting spkg proposals that have not seen recent activity to "sage-wishlist".

@mkoeppe mkoeppe removed this from the sage-6.4 milestone Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants