Merge pull request #161 from paulinus/force-focal

Force focal and ccd

Former-commit-id: 5f916db083
gh-pages
Dakota Benjamin 2015-08-27 12:51:34 -04:00
commit be169092b9
1 zmienionych plików z 2 dodań i 2 usunięć

4
run.py
Wyświetl plik

@ -340,14 +340,14 @@ def prepare_objects():
fileObject["width"] = int(match.group(1).strip())
fileObject["height"] = int(match.group(2).strip())
if '--force-focal' not in args:
if args.force_focal is None:
match = re.search(":[\ ]*([0-9\.]*)mm", file_focal)
if match:
fileObject["focal"] = float((match.group()[1:-2]).strip())
else:
fileObject["focal"] = args.force_focal
if '--force-ccd' not in args:
if args.force_ccd is None:
match = re.search(":[\ ]*([0-9\.]*)mm", file_ccd)
if match:
fileObject["ccd"] = float(match.group()[1:-2].strip())