mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-28 22:17:40 +02:00
[core][io] return file features as tuple
This commit is contained in:
parent
ac4772fc57
commit
62dbf7df95
1 changed files with 2 additions and 2 deletions
|
@ -189,7 +189,7 @@ class Graph(BaseObject):
|
||||||
fileVersion (str, Version): the file version
|
fileVersion (str, Version): the file version
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
list of Graph.IO.Features: the list of supported features
|
tuple of Graph.IO.Features: the list of supported features
|
||||||
"""
|
"""
|
||||||
if isinstance(fileVersion, str):
|
if isinstance(fileVersion, str):
|
||||||
fileVersion = Version(fileVersion)
|
fileVersion = Version(fileVersion)
|
||||||
|
@ -202,7 +202,7 @@ class Graph(BaseObject):
|
||||||
]
|
]
|
||||||
if fileVersion >= Version("1.1"):
|
if fileVersion >= Version("1.1"):
|
||||||
features += [Graph.IO.Features.NodesPositions]
|
features += [Graph.IO.Features.NodesPositions]
|
||||||
return features
|
return tuple(features)
|
||||||
|
|
||||||
def __init__(self, name, parent=None):
|
def __init__(self, name, parent=None):
|
||||||
super(Graph, self).__init__(parent)
|
super(Graph, self).__init__(parent)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue