Skip to content

Commit 63fce55

Browse files
committed
remove the useless wrapCommand on the StageSettings : let the submitter use what it needs and the nodes declare a wrapper if needed
1 parent 32684e1 commit 63fce55

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

meshroom/core/desc/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
Node,
5050
NodeVersionType,
5151
NodeVersionTypeEnum,
52-
MeshroomCommandWrapper,
5352
SubmissionSettings,
5453
StageSettings,
5554
)

meshroom/core/desc/node.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# desc/node.py
2-
31
import enum
42
from inspect import getfile, getattr_static
53
from pathlib import Path
@@ -63,19 +61,12 @@ class MrNodeType(enum.Enum):
6361
BACKDROP = enum.auto()
6462

6563

66-
class MeshroomCommandWrapper:
67-
def __call__(self, node, command: str) -> str:
68-
return command
69-
70-
7164
class StageSettings(SimpleNamespace):
7265
def __init__(self, cpu=Level.NORMAL, ram=Level.NORMAL, gpu=Level.NONE, **kwargs):
7366
super().__init__(**kwargs)
7467
self.cpu = cpu.value if hasattr(cpu, "value") else cpu
7568
self.ram = ram.value if hasattr(cpu, "value") else cpu
7669
self.gpu = gpu.value if hasattr(cpu, "value") else cpu
77-
# Wraps the stage command
78-
self.wrapCommand = MeshroomCommandWrapper()
7970

8071
def __contains__(self, item):
8172
return item in self.__dict__

0 commit comments

Comments
 (0)