MCPcopy Create free account
hub / github.com/WebODM/WebODM / p

Function p

app/raster_utils.py:97–107  ·  view source on GitHub ↗
(text, perc=0)

Source from the content-addressed store, hash-verified

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')

Callers 1

export_rasterFunction · 0.70

Calls 1

progress_callbackFunction · 0.50

Tested by

no test coverage detected