-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
audience - scriptingaffects advanced users doing scripting or plug-in developmentaffects advanced users doing scripting or plug-in developmenteffort - few weeksa few weeksa few weeksimpact - highhas difficult or onerous workaroundhas difficult or onerous workaroundneeds planningneeds planningneeds planningreach - mediumaffects several users weeklyaffects several users weekly
Description
Right now, some of them at least try to add some sensible dimensional and intensity calibrations to the output data. But all functions in Core.py strip the metadata dict from their inputs.
Processing functions with one input and one output should just copy the metdata to their outputs.
For processing functions with multiple inputs, I'm not sure what the best solution would be. 3 ideas:
- Use the metadata from the first input: Very simple but probably the worst solution (still better than the current situation, though)
- Add a list of metadata dicts to the output: Also very simple, but can overload the metadata of the output a bit. We already have a lot of stuff in there, and multiplying that might make it even harder for the user to browse through it.
- Merge the metadata dicts: This is the most complex, but probably most elegant solution. We would recursively go through the metadata and only put common keys into the result once. If the values of these keys are the same, we just list the values once, otherwise they get turned into a list of values for each input.
Alternatively we could have the common key, value pairs in one dict and the "unique" ones in a list of dicts as in point 2.
See also:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
audience - scriptingaffects advanced users doing scripting or plug-in developmentaffects advanced users doing scripting or plug-in developmenteffort - few weeksa few weeksa few weeksimpact - highhas difficult or onerous workaroundhas difficult or onerous workaroundneeds planningneeds planningneeds planningreach - mediumaffects several users weeklyaffects several users weekly