Skip to content

Commit

Permalink
python-3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan committed Jul 17, 2020
1 parent a25d50d commit 0430bce
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meshroom/nodes/aliceVision/LdrToHdrCalibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def findMetadata(d, keys, defaultValue):
k = key.lower()
if v is not None:
return v
for dk, dv in d.iteritems():
for dk, dv in d.items():
dkm = dk.lower().replace(" ", "")
if dkm == key.lower():
return dv
Expand Down
2 changes: 1 addition & 1 deletion meshroom/nodes/aliceVision/LdrToHdrMerge.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def findMetadata(d, keys, defaultValue):
k = key.lower()
if v is not None:
return v
for dk, dv in d.iteritems():
for dk, dv in d.items():
dkm = dk.lower().replace(" ", "")
if dkm == key.lower():
return dv
Expand Down
9 changes: 8 additions & 1 deletion meshroom/nodes/aliceVision/LdrToHdrSampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def findMetadata(d, keys, defaultValue):
k = key.lower()
if v is not None:
return v
for dk, dv in d.iteritems():
for dk, dv in d.items():
dkm = dk.lower().replace(" ", "")
if dkm == key.lower():
return dv
Expand Down Expand Up @@ -118,6 +118,13 @@ class LdrToHdrSampling(desc.CommandLineNode):
uid=[0],
advanced=True,
),
desc.BoolParam(
name='debug',
label='Export Debug Files',
description="Export debug files to analyze the sampling strategy.",
value=False,
uid=[],
),
desc.ChoiceParam(
name='verboseLevel',
label='Verbose Level',
Expand Down

0 comments on commit 0430bce

Please sign in to comment.