(text, perc=0)
| 95 | last_update = 0 |
| 96 | |
| 97 | def p(text, perc=0): |
| 98 | nonlocal current_progress |
| 99 | nonlocal last_update |
| 100 | |
| 101 | t = time.time() |
| 102 | current_progress += perc |
| 103 | |
| 104 | if t - last_update >= 1: |
| 105 | if progress_callback is not None: |
| 106 | progress_callback(text, current_progress) |
| 107 | last_update = t |
| 108 | |
| 109 | epsg = opts.get('epsg') |
| 110 | proj = opts.get('proj') |
no test coverage detected