You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In numpy 1.20, the np.bool type was deprecated in favour of the built in bool type. np.bool was finally removed in v.1.24. I recently installed meep on a new machine, and I guess it pulled the latest version of numpy, and when running my simulations the following error was raised:
AttributeError: module 'numpy' has no attribute 'bool'. Did you mean: 'bool_'?
This seems to only happen when I run my simulation using MPI, even with only one core. It seems the mp.merge_subgroup_data() command is what's causing the issue. This error is raised with any version of python I've tried (3.9, 3.10, 3.11) and any version of meep (1.23, 1.24, 1.25).
Below are the relevant parts of the traceback:
J_out = mp.merge_subgroup_data(J_out)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mambaforge3/envs/meep/lib/python3.11/site-packages/meep/simulation.py", line 6186, in merge_subgroup_data
group_masters = get_group_masters()
^^^^^^^^^^^^^^^^^^^
File "/opt/mambaforge3/envs/meep/lib/python3.11/site-packages/meep/simulation.py", line 6153, in get_group_masters
group_master_idx = np.zeros((num_workers,), dtype=np.bool)
^^^^^^^
File "/opt/mambaforge3/envs/meep/lib/python3.11/site-packages/numpy/__init__.py", line 284, in __getattr__
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'bool'. Did you mean: 'bool_'?
The text was updated successfully, but these errors were encountered:
In numpy 1.20, the
np.bool
type was deprecated in favour of the built inbool
type.np.bool
was finally removed in v.1.24. I recently installed meep on a new machine, and I guess it pulled the latest version of numpy, and when running my simulations the following error was raised:This seems to only happen when I run my simulation using MPI, even with only one core. It seems the
mp.merge_subgroup_data()
command is what's causing the issue. This error is raised with any version of python I've tried (3.9, 3.10, 3.11) and any version of meep (1.23, 1.24, 1.25).Below are the relevant parts of the traceback:
The text was updated successfully, but these errors were encountered: