We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In https://github.com/LSSTDESC/gen3_workflow/blob/master/python/desc/gen3_workflow/gather_resource_info.py#L23 : Many tasks do not register any "substep" in the metadata, so their only CPU time related keys are startCpuTime and endCpuTime. Because they do not start with a capital letter, they are not catch by key.endswith(min_field) and therefore no value is returned.
startCpuTime
endCpuTime
key.endswith(min_field)
The text was updated successfully, but these errors were encountered:
One solution is to use if not key.lower().endswith(min_field.lower()): but it's not very nice.
if not key.lower().endswith(min_field.lower()):
Sorry, something went wrong.
Another possibility is implemented here: https://github.com/lsst-dm/ProdStat/blob/6c71e967a5d26e78ba72e4da5534c5ec315e7d2d/python/lsst/ProdStat/GetButlerStat.py#L106
No branches or pull requests
In https://github.com/LSSTDESC/gen3_workflow/blob/master/python/desc/gen3_workflow/gather_resource_info.py#L23 :
Many tasks do not register any "substep" in the metadata, so their only CPU time related keys are
startCpuTime
andendCpuTime
.Because they do not start with a capital letter, they are not catch by
key.endswith(min_field)
and therefore no value is returned.The text was updated successfully, but these errors were encountered: