Skip to content

Commit c2a9659

Browse files
committed
[core] Remove unused imports
1 parent afe65b6 commit c2a9659

File tree

9 files changed

+16
-20
lines changed

9 files changed

+16
-20
lines changed

bin/meshroom_compute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ meshroom.setupEnvironment()
1616

1717
import meshroom.core
1818
import meshroom.core.graph
19-
from meshroom.core.node import Status, ExecMode
19+
from meshroom.core.node import Status
2020

2121

2222
parser = argparse.ArgumentParser(description='Execute a Graph of processes.')

meshroom/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from meshroom.core.submitter import BaseSubmitter
2323
from meshroom.env import EnvVar, meshroomFolder
2424
from . import desc
25-
from .desc import MrNodeType
25+
from .desc import MrNodeType # Not used here but simplifies imports for files that need it
2626

2727
# Setup logging
2828
logging.basicConfig(format='[%(asctime)s][%(levelname)s] %(message)s', level=logging.INFO)

meshroom/core/attribute.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
from meshroom.common import BaseObject, Property, Variant, Signal, ListModel, DictModel, Slot
1111
from meshroom.core import desc, hashValue
1212

13-
from typing import TYPE_CHECKING
14-
15-
if TYPE_CHECKING:
16-
from meshroom.core.graph import Edge
1713

1814
def attributeFactory(description: str, value, isOutput: bool, node, root=None, parent=None):
1915
"""

meshroom/core/desc/node.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from inspect import getfile
33
from pathlib import Path
44
import logging
5-
import os
65
import psutil
76
import shlex
87
import shutil

meshroom/core/utils.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
COLORSPACES = ["AUTO", "sRGB", "rec709", "Linear", "ACES2065-1", "ACEScg", "Linear ARRI Wide Gamut 3",
2-
"ARRI LogC3 (EI800)", "Linear ARRI Wide Gamut 4", "ARRI LogC4", "Linear BMD WideGamut Gen5",
3-
"BMDFilm WideGamut Gen5", "CanonLog2 CinemaGamut D55", "CanonLog3 CinemaGamut D55",
4-
"Linear CinemaGamut D55", "Linear V-Gamut", "V-Log V-Gamut", "Linear REDWideGamutRGB",
5-
"Log3G10 REDWideGamutRGB", "Linear Venice S-Gamut3.Cine", "S-Log3 Venice S-Gamut3.Cine", "no_conversion"]
1+
COLORSPACES = ["AUTO", "sRGB", "rec709", "Linear", "ACES2065-1", "ACEScg",
2+
"Linear ARRI Wide Gamut 3", "ARRI LogC3 (EI800)",
3+
"Linear ARRI Wide Gamut 4", "ARRI LogC4", "Linear BMD WideGamut Gen5",
4+
"BMDFilm WideGamut Gen5", "CanonLog2 CinemaGamut D55",
5+
"CanonLog3 CinemaGamut D55", "Linear CinemaGamut D55", "Linear V-Gamut",
6+
"V-Log V-Gamut", "Linear REDWideGamutRGB", "Log3G10 REDWideGamutRGB",
7+
"Linear Venice S-Gamut3.Cine", "S-Log3 Venice S-Gamut3.Cine", "no_conversion"]
68

7-
DESCRIBER_TYPES = ["sift", "sift_float", "sift_upright", "dspsift", "akaze", "akaze_liop", "akaze_mldb", "cctag3",
8-
"cctag4", "sift_ocv", "akaze_ocv", "tag16h5", "survey", "unknown"]
9+
DESCRIBER_TYPES = ["sift", "sift_float", "sift_upright", "dspsift", "akaze", "akaze_liop",
10+
"akaze_mldb", "cctag3", "cctag4", "sift_ocv", "akaze_ocv", "tag16h5",
11+
"survey", "unknown"]
912

1013
EXR_STORAGE_DATA_TYPE = ["float", "half", "halfFinite", "auto"]
1114

12-
RAW_COLOR_INTERPRETATION = ["None", "LibRawNoWhiteBalancing", "LibRawWhiteBalancing", "DCPLinearProcessing",
13-
"DCPMetadata", "Auto"]
15+
RAW_COLOR_INTERPRETATION = ["None", "LibRawNoWhiteBalancing", "LibRawWhiteBalancing",
16+
"DCPLinearProcessing", "DCPMetadata", "Auto"]
1417

1518
VERBOSE_LEVEL = ["fatal", "error", "warning", "info", "debug", "trace"]

meshroom/submitters/simpleFarmSubmitter.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import re
88

99
import simpleFarm
10-
from meshroom.core.desc import Level
1110
from meshroom.core.submitter import BaseSubmitter
1211

1312
currentDir = os.path.dirname(os.path.realpath(__file__))

meshroom/ui/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from PySide6 import __version__ as PySideVersion
88
from PySide6 import QtCore
9-
from PySide6.QtCore import QObject, QUrl, QJsonValue, qInstallMessageHandler, QtMsgType, QSettings
9+
from PySide6.QtCore import QUrl, QJsonValue, qInstallMessageHandler, QtMsgType, QSettings
1010
from PySide6.QtGui import QIcon
1111
from PySide6.QtQml import QQmlDebuggingEnabler
1212
from PySide6.QtQuickControls2 import QQuickStyle

meshroom/ui/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
from meshroom.core.taskManager import TaskManager
3131

32-
from meshroom.core.node import NodeChunk, Node, Status, ExecMode, CompatibilityNode, Position
32+
from meshroom.core.node import Node, Status, ExecMode, CompatibilityNode, Position
3333
from meshroom.core import submitters, MrNodeType
3434
from meshroom.ui import commands
3535
from meshroom.ui.utils import makeProperty

meshroom/ui/reconstruction.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import os
55
from collections.abc import Iterable
66
from multiprocessing.pool import ThreadPool
7-
from threading import Thread
87
from typing import Callable
98

109
from PySide6.QtCore import QObject, Slot, Property, Signal, QUrl, QSizeF, QPoint

0 commit comments

Comments
 (0)