Skip to content

Incompatibility with current numpy version #55

@yetinam

Description

@yetinam

The SeisBench CI is currently failing because of an xdas/numpy version incompatibility (see trace below). It's about the numpy.trapz attribute that doesn't exist anymore. Versions are xdas 0.2.4 and numpy 2.4.2.

____________ ERROR collecting tests/models/test_das_base_models.py _____________
tests/models/test_das_base_models.py:3: in <module>
    import xdas
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/xdas/__init__.py:2: in <module>
    from .core import coordinates, dataarray, datacollection, methods, numpy, routines
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/xdas/core/numpy.py:115: in <module>
    handled(drop_coords=True)(np.trapz)
                              ^^^^^^^^
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/__init__.py:792: in __getattr__
    raise AttributeError(f"module {__name__!r} has no attribute {attr!r}")
E   AttributeError: module 'numpy' has no attribute 'trapz'

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