You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using DVC to track a remote data repository repo with revision rev. My goal is to directly access the files in the DVC cache. To get the relative paths within this repository I use
It seems to me that there is some overhead in get_url which makes it slow, if I want to resolve the cache paths for many files. Am I missing something here? Is there a way to get the cache paths directly from the DVCFileSystem (which has already be initialized)?
I have seen that I can get the md5 hashes also from DVCFileSystem. However, the checksum alone will not give me the path within the cache. For example, if I need to cater for different DVC versions (2.x vs 3.x) then I need to be able to distinguish the pattern
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Context
I am using DVC to track a remote data repository
repo
with revisionrev
. My goal is to directly access the files in the DVC cache. To get the relative paths within this repository I useI still need to resolve the relative paths to the actual paths in the cache, which can be done via
Question
It seems to me that there is some overhead in
get_url
which makes it slow, if I want to resolve the cache paths for many files. Am I missing something here? Is there a way to get the cache paths directly from theDVCFileSystem
(which has already be initialized)?I have seen that I can get the
md5 hashes
also fromDVCFileSystem
. However, the checksum alone will not give me the path within the cache. For example, if I need to cater for different DVC versions (2.x vs 3.x) then I need to be able to distinguish the patternfrom
Beta Was this translation helpful? Give feedback.
All reactions