Skip to content

Commit a4c7354

Browse files
committed
update tag for band sensitivity for dji cameras
1 parent fec692b commit a4c7354

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
additional_dependencies: [
1717
'flake8-docstrings',
1818
'flake8-builtins',
19-
'flake8-logging-format',
19+
'flake8-logging',
2020
'flake8-rst-docstrings',
2121
'pygments',
2222
'pep8-naming'

imgcorrect/corrections.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ def get_sensitivity(row):
334334
]
335335
)
336336
return 1 / sensitivity
337+
elif "drone-dji:SensorGainAdjustment" in xmp:
338+
gain_adj = float(xmp["drone-dji:SensorGainAdjustment"])
339+
return gain_adj
337340
else:
338341
return 1
339342

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "imgcorrect"
3-
version = "2.1.0"
3+
version = "2.1.1"
44
description = "Library to perform various corrections on imagery from supported sensors"
55
authors = ["Samuel Williams <sam.williams@sentera.com>", "Joseph Franck <joseph.franck@sentera.com>"]
66

0 commit comments

Comments
 (0)