mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
added some docstrings to deprecated functions
This commit is contained in:
parent
f2a191861b
commit
ea241ca807
1 changed files with 20 additions and 11 deletions
|
|
@ -55,19 +55,23 @@ def deprecated(new_destination):
|
||||||
|
|
||||||
@deprecated("openpype.lib.path_tools.collect_frames")
|
@deprecated("openpype.lib.path_tools.collect_frames")
|
||||||
def collect_frames(files):
|
def collect_frames(files):
|
||||||
"""
|
"""Returns dict of source path and its frame, if from sequence
|
||||||
Returns dict of source path and its frame, if from sequence
|
|
||||||
|
|
||||||
Uses clique as most precise solution, used when anatomy template that
|
Uses clique as most precise solution, used when anatomy template that
|
||||||
created files is not known.
|
created files is not known.
|
||||||
|
|
||||||
Assumption is that frames are separated by '.', negative frames are not
|
Assumption is that frames are separated by '.', negative frames are not
|
||||||
allowed.
|
allowed.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
files(list) or (set with single value): list of source paths
|
files(list) or (set with single value): list of source paths
|
||||||
Returns:
|
|
||||||
(dict): {'/asset/subset_v001.0001.png': '0001', ....}
|
Returns:
|
||||||
|
(dict): {'/asset/subset_v001.0001.png': '0001', ....}
|
||||||
|
|
||||||
|
Deprecated:
|
||||||
|
Function was moved to different location and will be removed
|
||||||
|
after 3.16.* release.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .path_tools import collect_frames
|
from .path_tools import collect_frames
|
||||||
|
|
@ -77,7 +81,12 @@ def collect_frames(files):
|
||||||
|
|
||||||
@deprecated("openpype.lib.path_tools.format_file_size")
|
@deprecated("openpype.lib.path_tools.format_file_size")
|
||||||
def sizeof_fmt(num, suffix=None):
|
def sizeof_fmt(num, suffix=None):
|
||||||
"""Returns formatted string with size in appropriate unit"""
|
"""Returns formatted string with size in appropriate unit
|
||||||
|
|
||||||
|
Deprecated:
|
||||||
|
Function was moved to different location and will be removed
|
||||||
|
after 3.16.* release.
|
||||||
|
"""
|
||||||
|
|
||||||
from .path_tools import format_file_size
|
from .path_tools import format_file_size
|
||||||
return format_file_size(num, suffix)
|
return format_file_size(num, suffix)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue