-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
isdtype
not supported by old version numpy (NumPy 1.26.4), please let me how to resolve this issue, should we ensure users of our package are using NumPy 2+? TIA
_____________________________________________________________________________________________________________________ DirMultLMETests.test_dirmult_lme_vc_formula ______________________________________________________________________________________________________________________ self = <skbio.stats.tests.test_composition.DirMultLMETests testMethod=test_dirmult_lme_vc_formula> def test_dirmult_lme_vc_formula(self): > res = dirmult_lme( table=self.table, metadata=self.metadata, formula="Covar2 + Covar3", grouping="Covar1", draws=1, seed=0, p_adjust="sidak", vc_formula={"Covar2": "0 + C(Covar2)"}) ../skbio/stats/tests/test_composition.py:2148: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../skbio/stats/composition.py:2837: in dirmult_lme _check_composition(np, matrix) ../skbio/stats/composition.py:204: in _check_composition if not xp.isdtype(mat.dtype, "numeric"): ^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'isdtype' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: raise AttributeError(__former_attrs__[attr]) if attr == 'testing': import numpy.testing as testing return testing elif attr == 'Tester': "Removed in NumPy 1.25.0" raise RuntimeError("Tester was removed in NumPy 1.25.") > raise AttributeError("module {!r} has no attribute " "{!r}".format(__name__, attr)) E AttributeError: module 'numpy' has no attribute 'isdtype'. Did you mean: 'dtype'?
Metadata
Metadata
Assignees
Labels
No labels