/home/kfuku/miniconda3/lib/python3.9/site-packages/csubst/substitution.py:156: FutureWarning: In the future `np.bool` will be defined as the corresponding NumPy scalar.
if (sub_tensor.dtype == numpy.bool):
Traceback (most recent call last):
File "/home/kfuku/miniconda3/bin/csubst", line 324, in <module>
args.handler(args)
File "/home/kfuku/miniconda3/bin/csubst", line 43, in command_analyze
main_analyze(g)
File "/home/kfuku/miniconda3/lib/python3.9/site-packages/csubst/main_analyze.py", line 267, in main_analyze
g,cb = cb_search(g, b, S_tensor, N_tensor, id_combinations, write_cb=True)
File "/home/kfuku/miniconda3/lib/python3.9/site-packages/csubst/main_analyze.py", line 78, in cb_search
cbS = substitution.get_cb(id_combinations, S_tensor, g, 'OCS')
File "/home/kfuku/miniconda3/lib/python3.9/site-packages/csubst/substitution.py", line 183, in get_cb
df = sub_tensor2cb(id_combinations, sub_tensor, mmap=False, df_mmap=None,
File "/home/kfuku/miniconda3/lib/python3.9/site-packages/csubst/substitution.py", line 156, in sub_tensor2cb
if (sub_tensor.dtype == numpy.bool):
File "/home/kfuku/miniconda3/lib/python3.9/site-packages/numpy/__init__.py", line 305, in __getattr__
raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'bool'.
`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
(base) [kfuku@at137 tmp]$ mamba list numpy
# packages in environment at /home/kfuku/miniconda3:
#
# Name Version Build Channel
numpy 1.24.3 py39h6183b62_0 conda-forge