Skip to content

Commit

Permalink
Merge pull request #1811 from alicevision/lv/paramOverrideList
Browse files Browse the repository at this point in the history
[bin] meshroom_batch: allow passing list of values to param overrides
  • Loading branch information
fabiencastan authored Nov 17, 2022
2 parents a9447ac + 630c6e0 commit 8e9128b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meshroom/core/desc.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ def validateValue(self, value):
if self.exclusive:
return self.conformValue(value)

if isinstance(value, pyCompatibility.basestring):
value = value.split(',')

if not isinstance(value, pyCompatibility.Iterable):
raise ValueError('Non exclusive ChoiceParam value should be iterable (param:{}, value:{}, type:{})'.format(self.name, value, type(value)))
return [self.conformValue(v) for v in value]
Expand Down

0 comments on commit 8e9128b

Please sign in to comment.