Skip to content

[BUG] topological_dimension is not exposed #1551

Description

@conpierce8

Describe the bug

topological_dimension is listed in __all__ (__init__.py) but is never imported.

Resolution can be either of:

  1. Remove "topological_dimension" from __all__
  2. Import topological_dimension on line 44

I vote for the latter :)

To Reproduce

import meshio
meshio.topological_dimension
Traceback (most recent call last):
  File "<python-input-28>", line 1, in <module>
    meshio.topological_dimension
AttributeError: module 'meshio' has no attribute 'topological_dimension'

Diagnose

Using meshio version 5.3.5 installed from conda-forge on Windows:

conda list meshio
# packages in environment at C:\path\to\env:
#
# Name                    Version                   Build  Channel
meshio                    5.3.5              pyhd8ed1ab_0    conda-forge

Did I help?

If I was able to resolve your problem, consider sponsoring my work on meshio, or buy me a coffee to say thanks.

I will consider it. This is a great package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions