activity-browser icon indicating copy to clipboard operation
activity-browser copied to clipboard

Extended copy to_clipboard / data export functionality

Open bsteubing opened this issue 3 years ago • 3 comments

I just added functionality for exporting data specifically for constructing scenario difference files (for the superstructure approach). image

Yet, this new submenu Copy to clipboard could be extended to explicitly include:

  • the regular copy function (CTRL-C)
  • the regular copy function with headers (CTRL-SHIFT-C)
  • copying the data as_dict() from brightway [as the output one would get when calling as_dict() from bw]
  • copying ALL information on the underlying objects (databases, activities, exchanges) in a pandas dataframe csv format to copy to e.g. Excel [which would allow users to simply extract all information that is available at the brightway level, but perhaps not shown by the AB]
  • copying activity or exchange data so that it can be used in the brightway excel format

I don't know who has capacity for this (e.g. @StpdFox @nabilahmed739 @marc-vdm @haasad?), but I think it would be a great usability improvement!

Some more tips:

  • keyboard shortcuts can (if I am not mistaken) be part of menu information (so e.g. CTRL-SHIFT-C)

bsteubing avatar Nov 17 '21 22:11 bsteubing

See also https://github.com/LCA-ActivityBrowser/activity-browser/issues/688 how this could be used for copy-pasting exchanges between processes

bsteubing avatar Nov 17 '21 22:11 bsteubing

This sounds like very user-friendly stuff while not sounding difficult to implement! Unfortunately, I'm out of time until Jan/Feb, so it would probably be better if someone else picks this up.

An additional idea linked to your pt4 above: If copying an entire activity from a database, perhaps we could format the data the same as in excel databases, making it possible to paste the activity into excel and create/change databases in excel. The reverse would also be nice, if an activity is copied from excel that it could just be pasted into a database (though that may need some more work, like a 'relink db' menu for example).

Also related to #625

marc-vdm avatar Nov 18 '21 08:11 marc-vdm

Another idea: Copying parameters to scenario difference file, as these could also be used in scenarios.

marc-vdm avatar Nov 18 '21 10:11 marc-vdm