Processing Provenance #605
Replies: 4 comments 2 replies
-
I think this would definitely be useful. We add a sorta cmac history to cmac generated files, which might be similar. |
Beta Was this translation helpful? Give feedback.
-
@mgrover1 @kenkehoe @scollis curious to get your thoughts here as well. |
Beta Was this translation helpful? Give feedback.
-
Would be a nice addition but I'm curious how exact we will want this to be. Every sub-function will need to add to this global attribute and we would need to include keywords and more to have the true full history. That will end up being a lot of information. Also, the version of other libraries could affect the calculations. We should decide on a level of documentation that is good enough, or else we will end up like ARM storing a stupid amount of stuff. |
Beta Was this translation helpful? Give feedback.
-
I've been testing some things out on this and there could be a relatively easy solution by using the python logging library. If we could apply it in the init.py file. For example the below code will save the function call and keywords as
I am just unsure if we could easily do this in the init.py file and how that could be saved to the object... It is an interesting option though that could save a lot of hardcoding this in like I was originally thinking.
|
Beta Was this translation helpful? Give feedback.
-
I have been thinking about how we could trace the processing of a data product using ACT in such a manner that we could recreate it easily in the future, essentially the processing provenance. This would be important for any data products that are created using ACT. It would be a fair undertaking but one option is to add a "act_history" attribute (or whatever we would want to call it) such that whenever a function is called, it appends the function and parameter values to that history. As a short example:
But essentially, we could use this to trace the whole history of how ACT was used for each product. Again, this would be a rather large undertaking and put some added burden on future contributions so I wanted to just throw it out there for discussion.
Beta Was this translation helpful? Give feedback.
All reactions