ukaea / overlap_checker

A growing collection of tools to process CAD geometries for use in modelling workflows.
GNU General Public License v2.0
3 stars 1 forks source link

report progress during expensive operations #13

Closed smason closed 2 years ago

smason commented 2 years ago

@makeclean noted in https://github.com/ukaea/overlap_checker/pull/11 that it wasn't obvious that progress was being made nor how long a user might be wait for a result

this code tries to fix that by reporting progress every 5 seconds, saying something like:

119.249 [Info] processed 2105 pairs (61%)

this log line says it's been working for ~2 minutes, this is an informational (hence visible by default, pass -q to hide this) and it's processed 2105 overlap checks and this is 61% of the total

smason commented 2 years ago

calculating bounding boxes can take a while (e.g. ~20 second for the mastu file) so have also parallelized this operation while cleaning up this issue

makeclean commented 2 years ago

imprint_solids for the MAST-U case sits like this

4:53 $ ./imprint_solids -v -v mastu.brep mastu-imprinted.brep
0.000 [Debug] reading brep file mastu.brep
1.032 [Debug] expecting 1026 solid shapes

Do you have a feeling for how long it should take to start 'doing things'? Yesterday I left it for a long time.

We run the executables presumably as part of the test suite?

makeclean commented 2 years ago

Ah ok, it turns out I wasnt using it correctly.