Menu

#436 pdldoc dims shows only PDL::IO::HDF5::Dataset and not PDL::Core dims

normal
closed-fixed
nobody
None
5
2022-04-14
2017-06-10
No

pdldoc dims
Module PDL::IO::HDF5::Dataset
dims
Get the dims for a HDF5 dataset. For example, a 3 x 4 array would return
a perl array (3,4);

Usage:

 @pdl = $dataset->dims;    # Get an array of dims.

Docs from
/local64/lib/perl5/cygwin-thread-multi/PDL/IO/HDF5/Dataset.pm

but if I look at the PDL distribution result I get:

perl -Mblib pdldoc dims
Module PDL::Core
dims
Return piddle dimensions as a perl list

 @dims = $piddle->dims;  @dims = dims($piddle);

 pdl> p @tmp = dims zeroes 10,3,22
 10 3 22

See also shape which returns a piddle instead.

Docs from /pdl/git/pdl-code/blib/lib/PDL/Core.pm

so it appears that the install of the PDL docs from the PDL::IO::HDF5 module has overwritten the separate dims() from PDL::Core. Ideally, both should be present and listed in the default pdldoc output.

This is for PDL-2.018 with PDL::IO::HDF5 0.73.

Discussion

  • Derek Lamb

    Derek Lamb - 2017-06-12

    Possible duplicate of [#274].

     

    Related

    Bugs: #274

  • Derek Lamb

    Derek Lamb - 2018-03-09

    Please try the fix_docsys branch and let me know if that fix works with external modules too.

     
  • mohawk

    mohawk - 2018-04-09

    This matter will now be tracked at https://github.com/PDLPorters/pdl/issues/222

     
  • mohawk

    mohawk - 2022-04-14
    • status: open --> closed-fixed
     

Log in to post a comment.