-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing tk.uncached_path #32
Comments
Moving to Path only is ok for me. But if we change the caching behavior we should maybe switch to something where the caching is fully integrated also into the python code. I.e. instead of having the path object modify the string it should provide the location of the cached object. Even better: do this through an open wrapper. Something like:
|
We already have the definable But if we want to have something like the "copy back", then we need of course some nicer helpers. |
The function only does some basic manipulation of the string, but ideally we switch this to something better integrated. Actually there are still some places where |
In a lot of jobs, we accept How would we replace this code? Basically just replicate Note that we must (or should) allow
|
In the spirit of sisyphus, all inputs to a job should be My personal ideal world solution for returnn (and RASR, SCTK, etc) would be to use a CloneGitRepositoryJob and set the output Path object as the input of the Job that uses returnn.
Yes, this will be the reason the update will be difficult/impossible
with my solution we wouldn't need to define it. |
As there were also plans to remove
tk.uncached_path
completely (well, making it deprecated) from Sispyhus, I would suggest so start removing this from all locations and replacing it byget_path()
andget_cached_path()
, which is much cleaner. In most parts we do not want to have the dual usage ofstr/tk.Path
, and if you want to pass external wrapping this as a Path before passing this to a Job is much cleaner.If there are no objections within the next days, I will refactor that myself.
The text was updated successfully, but these errors were encountered: