Skip to content

Commit 10aab81

Browse files
committed
[core] computation : update computation levels
1 parent ef794d9 commit 10aab81

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

meshroom/core/desc/computation.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import math
2-
from enum import Enum
2+
from enum import IntEnum
33

44
from .attribute import ListAttribute, IntParam
55

66

7-
class Level(Enum):
7+
class Level(IntEnum):
88
NONE = 0
99
NORMAL = 1
1010
INTENSIVE = 2
11+
EXTREME = 2
12+
SCRIPT=-1
1113

1214

1315
class Range:
@@ -45,6 +47,9 @@ def toDict(self):
4547
"rangeFullSize": self.fullSize,
4648
"rangeBlocksCount": self.nbBlocks
4749
}
50+
51+
def __repr__(self):
52+
return f"<Range {self.iteration}({self.blockSize})/{self.nbBlocks}({self.fullSize})>"
4853

4954

5055
class Parallelization:

0 commit comments

Comments
 (0)