We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 569c545 commit b867112Copy full SHA for b867112
yt/geometry/particle_geometry_handler.py
@@ -275,7 +275,16 @@ def _initialize_coarse_index(self):
275
max_hsml = max(max_hsml, hsml.max())
276
else:
277
hsml = None
278
- self.regions._coarse_index_data_file(pos, hsml, data_file.file_id)
+ try:
279
+ self.regions._coarse_index_data_file(pos, hsml, data_file.file_id)
280
+ except TypeError as exc:
281
+ raise TypeError(
282
+ f"{pos=} ({type(pos)=})\n"
283
+ f"{hsml=} ({type(hsml)=})\n"
284
+ f"{data_file=} ({type(data_file)=})\n"
285
+ f"{data_file.file_id=} ({type(data_file.file_id)=})\n"
286
+ ) from exc
287
+
288
pb.finish()
289
self.regions.masks = self.comm.mpi_allreduce(self.regions.masks, op="sum")
290
self.regions.particle_counts = self.comm.mpi_allreduce(
0 commit comments