MCPcopy Index your code
hub / github.com/WebODM/WebODM / process_new_task

Method process_new_task

nodeodm/models.py:122–141  ·  view source on GitHub ↗

Sends a set of images (and optional GCP file) via the API to start processing. :param images: list of path images :param name: name of the task :param options: options to be used for processing ([{'name': optionName, 'value': optionValue}, ...]) :par

(self, images, name=None, options=[], progress_callback=None)

Source from the content-addressed store, hash-verified

120 return opts
121
122 def process_new_task(self, images, name=None, options=[], progress_callback=None):
123 """
124 Sends a set of images (and optional GCP file) via the API
125 to start processing.
126
127 :param images: list of path images
128 :param name: name of the task
129 :param options: options to be used for processing ([{'name': optionName, 'value': optionValue}, ...])
130 :param progress_callback: optional callback invoked during the upload images process to be used to report status.
131
132 :returns UUID of the newly created task
133 """
134 if len(images) < 1: raise exceptions.NodeServerError("Need at least 1 file")
135
136 api_client = self.api_client()
137
138 opts = self.options_list_to_dict(options)
139
140 task = api_client.create_task(images, opts, name, progress_callback, parallel_uploads=settings.NODE_CONNECTIONS)
141 return task.uuid
142
143 def get_task_info(self, uuid, with_output=None):
144 """

Callers 1

processMethod · 0.80

Calls 2

api_clientMethod · 0.95
options_list_to_dictMethod · 0.95

Tested by

no test coverage detected