Check that the coordinate limits are reasonable.
(surf)
| 567 | |
| 568 | |
| 569 | def _check_surface_size(surf): |
| 570 | """Check that the coordinate limits are reasonable.""" |
| 571 | sizes = surf["rr"].max(axis=0) - surf["rr"].min(axis=0) |
| 572 | if (sizes < 0.05).any(): |
| 573 | raise RuntimeError( |
| 574 | f"Dimensions of the surface {_bem_surf_name[surf['id']]} seem too " |
| 575 | f"small ({1000 * sizes.min():9.5f}). Maybe the unit of measure" |
| 576 | " is meters instead of mm" |
| 577 | ) |
| 578 | |
| 579 | |
| 580 | def _check_thicknesses(surfs): |
no outgoing calls