-
Notifications
You must be signed in to change notification settings - Fork 54
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
Maybe deprecate pattern_from_file_sequence #162
Comments
(Changed issue name per pangeo-forge/staged-recipes#58 (comment).) I do have a few open PRs which use
but I'm not especially attached to this method. In fact, any convenience lost by removing this method is likely offset by the standardization benefit derived from making it so there is, in the words of PEP 20, "... one-- and preferably only one --obvious way to do it." |
Since my last comment on this issue I have found many, many situations where
to say that I am in favor of keeping
Maybe we can build some automated checking for this, to minimize toil for maintainers. |
The only real problem with The way to resolve this would be to develop quantitative metrics and tests for those memory issues, rather than just waiting to hear that a particular recipe made the bakery crash. This was the point I was trying to make in #160 (comment). Without such metrics, we are flying blind. |
See #160 (comment) for justification, but the tl/dr is that for large recipes (many inputs),
filepatterns_from_sequence
can make large function objects.So while
filepatterns_from_sequence
is very convenient, I think we're best off guiding users to writing a function that generates the filepattern for an input index dynamically, rather than looking it up from a list. Otherwise recipe reviewers will need to be on the lookout for uses of it when there are a large number of inputs.The text was updated successfully, but these errors were encountered: