This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Lib from illicit part 2 #700
Merged
kalisp
merged 13 commits into
feature/664-3-0-lib-refactor
from
feature/lib_from_illicit_part_2
Nov 12, 2020
Merged
Lib from illicit part 2 #700
kalisp
merged 13 commits into
feature/664-3-0-lib-refactor
from
feature/lib_from_illicit_part_2
Nov 12, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…only place where is used
yeah I saw that too, We need to test I agree.
Agreed that this should be moved to the collector. We could however kill two birds with one stone, and re-write for efficiency. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR should not affect PR: #697. But it may as change same files. In that case let me know please.
Changes
New file
ffmpeg_utils.py
- utilities for ffmpeg tools- Personally don't like the name
ffmpeg_utils
but didn't came up with better. Contain only one function for ffprobe.ffprobe_streams
- get metadata from entered pathNew file
avalon_context.py
- functions based on current context in avalon's Session (AVALON_PROJECT
)is_latest
- check if representation is from latest versionany_outdated
- checker of outdated loaded contentget_asset
- get document of current asset by name inAVALON_ASSET
get_hierarchy
- get hierarchy of current assetget_linked_assets
- get linked asset documentsget_latest_version
- get latest version by entered arguments (asset name, subset name, etc.)BuildWorkfile
- logic for build workfile based on presetsMoved functions
- They're not created by me. Wanted to move them to
avalon_context
but their logic seems to be specific for their usage.switch_item
moved tofusion.lib
used only in fusion host - !!! If possible test if it works, I don't have fusion to test it properly. !!!get_subsets
used only in celaction collector -> moved to the collector. Seems like the function does more then just "get subsets". Very uneffective way of getting documents from mongo.