MCPcopy Create free account
hub / github.com/cdcseacave/openMVS / apply_conf

Method apply_conf

scripts/python/MvgMvsPipeline.py:294–306  ·  view source on GitHub ↗

replace each %var% per conf.var value in steps data

(self, conf)

Source from the content-addressed store, hash-verified

292 return len(self.steps_data)
293
294 def apply_conf(self, conf):
295 """ replace each %var% per conf.var value in steps data """
296 for s in self.steps_data:
297 o2 = []
298 for o in s[2]:
299 co = o.replace("%input_dir%", conf.input_dir)
300 co = co.replace("%output_dir%", conf.output_dir)
301 co = co.replace("%matches_dir%", conf.matches_dir)
302 co = co.replace("%reconstruction_dir%", conf.reconstruction_dir)
303 co = co.replace("%mvs_dir%", conf.mvs_dir)
304 co = co.replace("%camera_file_params%", conf.camera_file_params)
305 o2.append(co)
306 s[2] = o2
307
308 def replace_opt(self, idx, str_exist, str_new):
309 """ replace each existing str_exist with str_new per opt value in step idx data """

Callers 1

MvgMvsPipeline.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected