Skip to content

rename and update LHDFStore + add open_hdf (like in xw_excel.py) #614

Description

@alixdamman

TODO:

  • add open_hdf function
  • implement put(key, value, attrs) method:
     arr = ndtest((3, 3))
     with LHDFStore(filepath) as store:
         store.put(key='arr', value=arr, attrs={'type': 'Array'})
  • update documentation of argument filepath of Axis/Group/LArray.to_hdf to tell it can also be a LHDFStore instance

Activity

  1. added this to the 0.30 milestone on Apr 6, 2018
  2. alixdamman commented on Apr 6, 2018

    @alixdamman
    CollaboratorAuthor

    @gdementen feel free to update to update my first comment.

  3. gdementen commented on Apr 6, 2018

    @gdementen
    Contributor

    add open_hdf function

    We could also go the other way round and deprecate open_excel. I am unsure about this. I never liked open_excel but maybe this is more intuitive for users??? We should make a poll :)

  4. gdementen commented on Apr 6, 2018

    @gdementen
    Contributor

    The main reason for this issue is that I want to handle the case where users load or save an HDF file object by object (for whatever reason) without opening and closing the file for each object (like what happens when you use to_hdf/read_hdf). Maybe renaming LHDFStore and making it into a Session subclass (eg HDFSession) is the right thing to do. In that case, we will need to also make open_excel return an ExcelSession too. It seems like a good idea now, but this is probably hard to achieve because excel.Sheet objects are not really LArrays. In fact, I think they should be (or some subclass of them like LazyLArray), and their .data field should point to the sheet range. Probably a great thing but huge refactor would be necessary to achieve that.

  5. modified the milestones: 0.30, 0.31 on Jul 18, 2018
  6. modified the milestones: 0.31, on Apr 9, 2019
  7. removed this from the milestone on Aug 1, 2019
  8. alixdamman commented on Sep 3, 2019

    @alixdamman
    CollaboratorAuthor

    See PR #761

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions