Skip to content

Add documentation for get_diagnostics() #637

Open

Description

@uellue

A dataset's get_diagnostics() method can help to find additional datasets in a HDF5 file.

Side note -- is the info button in the GUI documented that provides the same info?

Activity

  1. sk1p commented on Feb 21, 2020

    @sk1p
    Member

    The GUI uses the diagnostics property - which also contains some general information about partitioning. I guess that's also the one you would access as an API user. Note that the information therein is not meant for automated consumption in scripts (note also the weird list-of-dict structure) and is not guaranteed to be stable!

  2. sayandip18 commented on Apr 5, 2020

    @sayandip18
    Contributor

    Found a typo in line 242

  3. sk1p commented on Apr 5, 2020

    @sk1p
    Member

    Found a typo in line 242

    Nice catch, feel free to open a PR!

  4. sayandip18 commented on Apr 5, 2020

    @sayandip18
    Contributor

    This is strange! There's no file named base.py in my repository. Do I have to create the entire file?

  5. sk1p commented on Apr 6, 2020

    @sk1p
    Member

    This is strange! There's no file named base.py in my repository

    That's because the base.py file has recently been broken up into more but shorter files. If you update to the current master, you too should have a base.py file.

  6. sayandip18 commented on Apr 6, 2020

    @sayandip18
    Contributor

    If you update to the current master, you too should have a base.py file.

    The current master doesn't have the base.py file. Also, the link points to a "tree", I think. What about I just copypaste the entire thing and replace the smaller files with a single base.py file? Wouldn't that be the simplest way to get it done?

  7. sk1p commented on Apr 6, 2020

    @sk1p
    Member

    The current master doesn't have the base.py file.

    Ah, sorry. This:

    If you update to the current master, you too should have a base.py file.

    was wrong, because the current version no longer has the base.py file. But you can find the same classes in that directory of smaller files (you can have a look at the __init__.py file as a kind of "index" of the package).

    Also, the link points to a "tree", I think

    A tree is how git maps directories to its internal data structures. So any link to a directory on github will be a link to a tree. In this case, the link is actually not a tree, but a "blob", which is how git stores specific versions of files (in this case, version 05edd...).

    If you are interested how trees, blobs etc. in git work, I can recommend the official documentation on git internal objects.

    What about I just copypaste the entire thing and replace the smaller files with a single base.py file? Wouldn't that be the simplest way to get it done?

    While it may be simple, it will undo my work of actually separating them. We try to keep files small in order to make classes and functions easier findable. It is hard to navigate files that are longer than a few hundred lines.

  8. added this to the 0.8 milestone on May 27, 2021
  9. modified the milestones: 0.8, backlog on Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions