update_launchpad_data does not apply to tasks collection
janosh opened this issue · 5 comments
Currently update_launchpad_data
applies only to ["launches", "fireworks", "workflows"]
but omits the "tasks"
collection. Is this a deliberate decision? Any reason "tasks"
should not be changed?
fireworks/fireworks/utilities/update_collection.py
Lines 10 to 25 in 1cb78cf
The tasks
collection is not created or managed by FireWorks since it's something created by atomate
for the purpose of managing VASP calculations etc., FireWorks is agnostic about what other collections are present in the database since it's a general-purpose code.
The traditional way we've set up our databases when using FireWorks has been to have one database used exclusively by FireWorks, and another database for simulation artifacts like tasks
, but more recently have been running them out of a single database for convenience.
I remembered after creating this issue that lpad
itself doesn't write to the 'tasks'
collection. So given the function name update_launchpad_data
, it makes sense. But would you be open to adding a kwarg
to handle additional collections? Also, I could add regex support while I'm at it.
@mkhorton I built and tested a version of update_launchpad_data
that takes arbitrary collection names and also allows for regex replacements. Let me know if you'd like a PR for that. If not, this can be closed.
Not my decision @janosh, @computron is the maintainer here :-)
I think adding the kwarg sounds sensible.